HomeSort by relevance Sort by last modified time
    Searched full:contentlength (Results 1 - 25 of 114) sorted by null

1 2 3 4 5

  /external/nist-sip/java/javax/sip/header/
ContentLengthHeader.java 9 void setContentLength(int contentLength) throws InvalidArgumentException;
  /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/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...]
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() {
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;
  /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/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
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);
RealResponseBody.java 37 @Override public long contentLength() {
38 return OkHeaders.contentLength(headers);
  /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);
  /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/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());
RequestTest.java 37 assertEquals(3, body.contentLength());
46 assertEquals(3, body.contentLength());
54 assertEquals(2, body.contentLength());
62 assertEquals(3, body.contentLength());
71 assertEquals(3, body.contentLength());
85 assertEquals(3, body.contentLength());
105 assertEquals(0L, delete.body().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/apache-http/src/org/apache/http/impl/io/
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) {
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...]
  /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);
  /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;
  /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));
  /frameworks/av/media/libstagefright/foundation/
ParsedMessage.cpp 164 int32_t contentLength;
165 if (!findInt32("content-length", &contentLength) || contentLength < 0) {
166 contentLength = 0;
169 size_t totalLength = offset + contentLength;
175 mContent.setTo(&data[offset], contentLength);
  /external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/
ServiceConnectionSE.java 112 * @param contentLength the fixed length of the HTTP request body
115 public void setFixedLengthStreamingMode(int contentLength) {
116 connection.setFixedLengthStreamingMode(contentLength);
  /external/oauth/core/src/main/java/net/oauth/client/httpclient4/
HttpMethodResponse.java 109 long contentLength = r.getEntity().getContentLength();
110 if (contentLength >= 0) {
111 request.append("Content-Length: ").append(contentLength).append(EOL);
  /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);
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
UserBox.java 42 ";contentLength=" + data.length + "]";

Completed in 76 milliseconds

1 2 3 4 5