HomeSort by relevance Sort by last modified time
    Searched refs:contentLength (Results 1 - 25 of 135) sorted by null

1 2 3 4 5 6

  /external/nist-sip/java/gov/nist/javax/sip/header/
ContentLength.java 35 * ContentLength SIPHeader (of which there can be only one in a SIPMessage).
76 public class ContentLength
85 * contentLength field.
87 protected Integer contentLength;
92 public ContentLength() {
99 public ContentLength(int length) {
101 this.contentLength = Integer.valueOf(length);
105 * get the ContentLength field.
109 return contentLength.intValue();
113 * Set the contentLength membe
    [all...]
  /external/apache-http/src/org/apache/http/impl/io/
ContentLengthInputStream.java 83 private long contentLength;
100 * @param contentLength The maximum number of bytes that can be read from
103 public ContentLengthInputStream(final SessionInputBuffer in, long contentLength) {
108 if (contentLength < 0) {
112 this.contentLength = contentLength;
148 if (pos >= contentLength) {
172 if (pos >= contentLength) {
176 if (pos + len > contentLength) {
177 len = (int) (contentLength - pos)
    [all...]
ContentLengthOutputStream.java 64 private final long contentLength;
76 * @param contentLength The maximum number of bytes that can be written to
81 public ContentLengthOutputStream(final SessionOutputBuffer out, long contentLength) {
86 if (contentLength < 0) {
90 this.contentLength = contentLength;
113 if (this.total < this.contentLength) {
114 long max = this.contentLength - this.total;
131 if (this.total < this.contentLength) {
  /packages/apps/Browser/src/com/android/browser/
BrowserDownloadListener.java 35 * @param contentLength The file size reported by the server
39 long contentLength);
49 * @param contentLength The file size reported by the server
53 String contentDisposition, String mimetype, long contentLength) {
56 contentLength);
  /external/nist-sip/java/javax/sip/header/
ContentLengthHeader.java 9 void setContentLength(int contentLength) throws InvalidArgumentException;
  /frameworks/base/core/java/android/webkit/
DownloadListener.java 28 * @param contentLength The file size reported by the server
31 String contentDisposition, String mimetype, long contentLength);
CacheManager.java 53 long contentLength;
85 return contentLength;
222 public void setContentLength(long contentLength) {
223 this.contentLength = contentLength;
  /external/nist-sip/java/gov/nist/javax/sip/parser/
ContentLengthParser.java 44 public ContentLengthParser(String contentLength) {
45 super(contentLength);
56 ContentLength contentLength = new ContentLength();
59 contentLength.setContentLength(Integer.parseInt(number));
62 return contentLength;
MaxForwardsParser.java 43 public MaxForwardsParser(String contentLength) {
44 super(contentLength);
55 MaxForwards contentLength = new MaxForwards();
58 contentLength.setMaxForwards(Integer.parseInt(number));
61 return contentLength;
PipelinedMsgParser.java 292 ContentLength cl = (ContentLength) sipMessage
294 int contentLength = 0;
296 contentLength = cl.getContentLength();
298 contentLength = 0;
302 Debug.println("contentLength " + contentLength);
305 if (contentLength == 0) {
308 || contentLength < this.sizeCounter) {
309 byte[] message_body = new byte[contentLength];
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
ResponseBody.java 40 public abstract long contentLength() throws IOException;
49 long contentLength = contentLength();
50 if (contentLength > Integer.MAX_VALUE) {
51 throw new IOException("Cannot buffer entire body for content length: " + contentLength);
61 if (contentLength != -1 && contentLength != bytes.length) {
120 final MediaType contentType, final long contentLength, final BufferedSource content) {
127 @Override public long contentLength() {
128 return contentLength;
    [all...]
MultipartBuilder.java 201 private long contentLength = -1L;
217 @Override public long contentLength() throws IOException {
218 long result = contentLength;
220 return contentLength = writeOrCountBytes(null, true);
261 long contentLength = body.contentLength();
262 if (contentLength != -1) {
264 .writeDecimalLong(contentLength)
275 byteCount += contentLength;
RequestBody.java 35 public long contentLength() throws IOException {
66 @Override public long contentLength() throws IOException {
91 @Override public long contentLength() {
110 @Override public long contentLength() {
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
RealResponseBody.java 37 @Override public long contentLength() {
38 return OkHeaders.contentLength(headers);
HttpTransport.java 36 @Override public Sink createRequestBody(Request request, long contentLength) throws IOException {
42 if (contentLength != -1) {
44 return httpConnection.newFixedLengthSink(contentLength);
123 long contentLength = OkHeaders.contentLength(response);
124 if (contentLength != -1) {
125 return httpConnection.newFixedLengthSource(contentLength);
Transport.java 34 Sink createRequestBody(Request request, long contentLength) throws IOException;
  /external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
Progress.java 41 @Override public void update(long bytesRead, long contentLength, boolean done) {
43 System.out.println(contentLength);
45 System.out.format("%d%% done\n", (100 * bytesRead) / contentLength);
83 @Override public long contentLength() throws IOException {
84 return responseBody.contentLength();
101 progressListener.update(totalBytesRead, responseBody.contentLength(), bytesRead == -1);
109 void update(long bytesRead, long contentLength, boolean done);
  /libcore/luni/src/main/java/java/net/
HttpURLConnection.java 757 * fixed byte count of {@code contentLength}.
760 * @param contentLength
765 * if {@code contentLength} is less than zero.
768 public void setFixedLengthStreamingMode(long contentLength) {
775 if (contentLength < 0) {
776 throw new IllegalArgumentException("contentLength < 0");
778 this.fixedContentLength = (int) Math.min(contentLength, Integer.MAX_VALUE);
779 this.fixedContentLengthLong = contentLength;
783 * Equivalent to {@code setFixedLengthStreamingMode((long) contentLength)},
786 public void setFixedLengthStreamingMode(int contentLength) {
    [all...]
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
FormEncodingBuilderTest.java 33 assertEquals(expected.length(), formEncoding.contentLength());
46 assertEquals(expected.length(), formEncoding.contentLength());
61 assertEquals(expected.length(), formEncoding.contentLength());
MultipartBuilderTest.java 49 assertEquals(53, requestBody.contentLength());
50 assertEquals(buffer.size(), requestBody.contentLength());
80 assertEquals(112, requestBody.contentLength());
81 assertEquals(buffer.size(), requestBody.contentLength());
137 assertEquals(568, requestBody.contentLength());
138 assertEquals(buffer.size(), requestBody.contentLength());
223 assertEquals(-1, requestBody.contentLength());
  /external/nanohttpd/core/src/test/java/fi/iki/elonen/
HttpPostRequestTest.java 30 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length();
31 String input = header + CONTENT_LENGTH + (contentLength+4) + "\r\n\r\n" + content;
50 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length();
51 String input = header + CONTENT_LENGTH + (contentLength+4) + "\r\n\r\n" + content;
73 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length();
74 String input = header + CONTENT_LENGTH + (contentLength+4) + "\r\n\r\n" + content;
97 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length();
98 String input = header + CONTENT_LENGTH + (contentLength+4) + "\r\n\r\n" + content;
151 int contentLength = size + contentLengthHeaderValueSize + CONTENT_LENGTH.length();
152 String input = header + CONTENT_LENGTH + (contentLength+5) + "\r\n\r\n" + content
    [all...]
  /external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
PutStreamIntegrationTest.java 50 int contentLength = Integer.parseInt(headers.get("content-length"));
55 body = new byte[contentLength];
56 dataInputStream.readFully(body, 0, contentLength);
  /external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/transport/
ServiceConnection.java 86 * @param contentLength the fixed length of the HTTP request body
89 public void setFixedLengthStreamingMode(int contentLength);
  /external/oauth/core/src/main/java/net/oauth/client/
URLConnectionClient.java 73 String contentLength = null;
78 contentLength = header.getValue();
88 if (contentLength != null) {
90 .setFixedLengthStreamingMode(Integer.parseInt(contentLength));
  /external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/
HttpsURLConnectionImpl.java 72 @Override public void setFixedLengthStreamingMode(long contentLength) {
73 delegate.setFixedLengthStreamingMode(contentLength);

Completed in 982 milliseconds

1 2 3 4 5 6