/external/nist-sip/java/gov/nist/javax/sip/parser/ |
H A D | ContentLengthParser.java | 44 public ContentLengthParser(String contentLength) { argument 45 super(contentLength); 56 ContentLength contentLength = new ContentLength(); 59 contentLength.setContentLength(Integer.parseInt(number)); 62 return contentLength;
|
H A D | MaxForwardsParser.java | 43 public MaxForwardsParser(String contentLength) { argument 44 super(contentLength); 55 MaxForwards contentLength = new MaxForwards(); 58 contentLength.setMaxForwards(Integer.parseInt(number)); 61 return contentLength;
|
/external/nist-sip/java/javax/sip/header/ |
H A D | ContentLengthHeader.java | 9 void setContentLength(int contentLength) throws InvalidArgumentException; argument
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
H A D | RealResponseBody.java | 37 @Override public long contentLength() { method in class:RealResponseBody 38 return OkHeaders.contentLength(headers);
|
H A D | HttpStream.java | 34 Sink createRequestBody(Request request, long contentLength) throws IOException; argument
|
H A D | RetryableSink.java | 70 public long contentLength() throws IOException { method in class:RetryableSink
|
H A D | Http2xStream.java | 122 @Override public Sink createRequestBody(Request request, long contentLength) throws IOException { argument
|
H A D | OkHeaders.java | 64 public static long contentLength(Request request) { method in class:OkHeaders 65 return contentLength(request.headers()); 68 public static long contentLength(Response response) { method in class:OkHeaders 69 return contentLength(response.headers()); 72 public static long contentLength(Headers headers) { method in class:OkHeaders
|
/external/apache-http/src/org/apache/http/impl/io/ |
H A D | ContentLengthOutputStream.java | 64 private final long contentLength; field in class:ContentLengthOutputStream 76 * @param contentLength The maximum number of bytes that can be written to 81 public ContentLengthOutputStream(final SessionOutputBuffer out, long contentLength) { argument 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) {
|
H A D | ContentLengthInputStream.java | 83 private long contentLength; field in class:ContentLengthInputStream 100 * @param contentLength The maximum number of bytes that can be read from 103 public ContentLengthInputStream(final SessionInputBuffer in, long contentLength) { argument 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 [all...] |
/external/nanohttpd/fileupload/src/main/java/fi/iki/elonen/ |
H A D | NanoFileUpload.java | 65 public long contentLength() { method in class:NanoFileUpload.NanoHttpdContext 89 return (int) contentLength();
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
H A D | ContentLength.java | 85 * contentLength field. 87 protected Integer contentLength; 101 this.contentLength = Integer.valueOf(length); 109 return contentLength.intValue(); 113 * Set the contentLength member 114 * @param contentLength int to set 116 public void setContentLength(int contentLength) 118 if (contentLength < 0) 121 + ", ContentLength, setContentLength(), the contentLength parameter is <0"); 122 this.contentLength 86 protected Integer contentLength; field in class:ContentLength 115 setContentLength(int contentLength) argument [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
H A D | RequestBody.java | 35 public long contentLength() throws IOException { method in class:RequestBody 66 @Override public long contentLength() throws IOException { 91 @Override public long contentLength() { 110 @Override public long contentLength() {
|
H A D | ResponseBody.java | 40 public abstract long contentLength() throws IOException; method in class:ResponseBody 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; 119 create( final MediaType contentType, final long contentLength, final BufferedSource content) argument [all...] |
H A D | MultipartBuilder.java | 201 private long contentLength = -1L; field in class:MultipartBuilder.MultipartRequestBody 217 @Override public long contentLength() throws IOException { method in class:MultipartBuilder.MultipartRequestBody 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;
|
H A D | Cache.java | 661 String contentLength = responseHeaders.get("Content-Length"); 673 .body(new CacheResponseBody(snapshot, contentType, contentLength)) 696 private final String contentLength; field in class:Cache.CacheResponseBody 699 String contentType, String contentLength) { 702 this.contentLength = contentLength; 717 @Override public long contentLength() { method in class:Cache.CacheResponseBody 719 return contentLength != null ? Long.parseLong(contentLength) : -1; 698 CacheResponseBody(final DiskLruCache.Snapshot snapshot, String contentType, String contentLength) argument
|
/external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/ |
H A D | HttpEntityBody.java | 30 @Override public long contentLength() { method in class:HttpEntityBody
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
H A D | 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 { method in class:Progress.ProgressResponseBody 84 return responseBody.contentLength(); 101 progressListener.update(totalBytesRead, responseBody.contentLength(), bytesRead == -1); 109 void update(long bytesRead, long contentLength, boolean done); argument
|
/external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/transport/ |
H A D | ServiceConnection.java | 86 * @param contentLength the fixed length of the HTTP request body 89 public void setFixedLengthStreamingMode(int contentLength); argument
|
/external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/ |
H A D | HttpTransportSE.java | 92 * @param contentLength 95 public HttpTransportSE(String url, int timeout, int contentLength) { argument 99 public HttpTransportSE(Proxy proxy, String url, int timeout, int contentLength) { argument
|
H A D | ServiceConnectionSE.java | 112 * @param contentLength the fixed length of the HTTP request body 115 public void setFixedLengthStreamingMode(int contentLength) { argument 116 connection.setFixedLengthStreamingMode(contentLength);
|
H A D | HttpsServiceConnectionSE.java | 100 public void setFixedLengthStreamingMode(int contentLength) { argument 101 connection.setFixedLengthStreamingMode(contentLength);
|
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/ |
H A D | HttpsURLConnectionImpl.java | 75 @Override public void setFixedLengthStreamingMode(long contentLength) { argument 76 delegate.setFixedLengthStreamingMode(contentLength);
|
/external/nist-sip/java/javax/sip/message/ |
H A D | Message.java | 35 void setContentLength(ContentLengthHeader contentLength); argument
|
/external/glide/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/ |
H A D | GifDecoder.java | 315 public int read(InputStream is, int contentLength) { argument 318 int capacity = (contentLength > 0) ? (contentLength + 4096) : 16384;
|