/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) {
|
/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 | 54 long contentLength; 86 return contentLength; 223 public void setContentLength(long contentLength) { 224 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);
|
HttpStream.java | 34 Sink createRequestBody(Request request, long contentLength) throws IOException;
|
/external/volley/src/main/java/com/android/volley/toolbox/ |
AdaptedHttpStack.java | 70 long contentLength = apacheResp.getEntity().getContentLength(); 71 if ((int) contentLength != contentLength) { 72 throw new IOException("Response too large: " + contentLength);
|
HttpResponse.java | 39 this(statusCode, headers, -1 /* contentLength */, null /* content */); 47 * @param contentLength the length of the response content. Ignored if there is no content. 52 int statusCode, List<Header> headers, int contentLength, InputStream content) { 55 mContentLength = contentLength;
|
/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/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/ |
UrlDownloaderTask.java | 114 int contentLength = progress[1]; 115 if (contentLength == -1) { 118 mDialog.setMax(contentLength); 153 int contentLength = connection.getContentLength(); 155 if (mFile.exists() && contentLength == mFile.length()) { 166 publishProgress(0, contentLength); 169 if (bytesCopied != contentLength && contentLength != -1) { 170 throw new IOException("Download incomplete: " + bytesCopied + " != " + contentLength);
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
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 | 80 int contentLength = size + contentLengthHeaderValueSize + HttpPostRequestTest.CONTENT_LENGTH.length(); 81 String input = header + HttpPostRequestTest.CONTENT_LENGTH + (contentLength + 5) + "\r\n\r\n" + content; 125 int contentLength = size + contentLengthHeaderValueSize + HttpPostRequestTest.CONTENT_LENGTH.length(); 126 String input = header + HttpPostRequestTest.CONTENT_LENGTH + (contentLength + 4) + "\r\n\r\n" + content; 144 int contentLength = size + contentLengthHeaderValueSize + HttpPostRequestTest.CONTENT_LENGTH.length(); 145 String input = header + HttpPostRequestTest.CONTENT_LENGTH + (contentLength + 4) + "\r\n\r\n" + content; 162 int contentLength = size + contentLengthHeaderValueSize + HttpPostRequestTest.CONTENT_LENGTH.length(); 163 String input = header + HttpPostRequestTest.CONTENT_LENGTH + (contentLength + 4) + "\r\n\r\n" + content; 176 int contentLength = size + contentLengthHeaderValueSize + HttpPostRequestTest.CONTENT_LENGTH.length(); 177 String input = header + HttpPostRequestTest.CONTENT_LENGTH + (contentLength + 4) + "\r\n\r\n" + content [all...] |
/libcore/ojluni/src/main/java/java/net/ |
HttpURLConnection.java | 347 * @param contentLength The number of bytes which will be written 359 public void setFixedLengthStreamingMode (int contentLength) { 366 if (contentLength < 0) { 369 fixedContentLength = contentLength; 392 * @param contentLength 404 public void setFixedLengthStreamingMode(long contentLength) { 412 if (contentLength < 0) { 415 fixedContentLengthLong = contentLength; [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
PutStreamIntegrationTest.java | 62 int contentLength = Integer.parseInt(headers.get("content-length")); 67 body = new byte[contentLength]; 68 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 | 75 @Override public void setFixedLengthStreamingMode(long contentLength) { 76 delegate.setFixedLengthStreamingMode(contentLength);
|