Searched defs:contentLength (Results 1 - 25 of 54) sorted by relevance

123

/external/nist-sip/java/gov/nist/javax/sip/parser/
H A DContentLengthParser.java44 public ContentLengthParser(String contentLength) { argument
45 super(contentLength);
56 ContentLength contentLength = new ContentLength();
59 contentLength.setContentLength(Integer.parseInt(number));
62 return contentLength;
H A DMaxForwardsParser.java43 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 DContentLengthHeader.java9 void setContentLength(int contentLength) throws InvalidArgumentException; argument
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
H A DRealResponseBody.java37 @Override public long contentLength() { method in class:RealResponseBody
38 return OkHeaders.contentLength(headers);
H A DHttpStream.java34 Sink createRequestBody(Request request, long contentLength) throws IOException; argument
H A DRetryableSink.java70 public long contentLength() throws IOException { method in class:RetryableSink
H A DHttp2xStream.java122 @Override public Sink createRequestBody(Request request, long contentLength) throws IOException { argument
H A DOkHeaders.java64 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 DContentLengthOutputStream.java64 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 DContentLengthInputStream.java83 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 DNanoFileUpload.java65 public long contentLength() { method in class:NanoFileUpload.NanoHttpdContext
89 return (int) contentLength();
/external/nist-sip/java/gov/nist/javax/sip/header/
H A DContentLength.java85 * 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 DRequestBody.java35 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 DResponseBody.java40 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 DMultipartBuilder.java201 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 DCache.java661 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 DHttpEntityBody.java30 @Override public long contentLength() { method in class:HttpEntityBody
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
H A DProgress.java41 @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 DServiceConnection.java86 * @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 DHttpTransportSE.java92 * @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 DServiceConnectionSE.java112 * @param contentLength the fixed length of the HTTP request body
115 public void setFixedLengthStreamingMode(int contentLength) { argument
116 connection.setFixedLengthStreamingMode(contentLength);
H A DHttpsServiceConnectionSE.java100 public void setFixedLengthStreamingMode(int contentLength) { argument
101 connection.setFixedLengthStreamingMode(contentLength);
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/
H A DHttpsURLConnectionImpl.java75 @Override public void setFixedLengthStreamingMode(long contentLength) { argument
76 delegate.setFixedLengthStreamingMode(contentLength);
/external/nist-sip/java/javax/sip/message/
H A DMessage.java35 void setContentLength(ContentLengthHeader contentLength); argument
/external/glide/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/
H A DGifDecoder.java315 public int read(InputStream is, int contentLength) { argument
318 int capacity = (contentLength > 0) ? (contentLength + 4096) : 16384;

Completed in 486 milliseconds

123