OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs: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/okhttp/okhttp/src/main/java/com/squareup/okhttp/
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
() {
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
;
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
RealResponseBody.java
37
@Override public long
contentLength
() {
38
return OkHeaders.
contentLength
(headers);
RetryableSink.java
70
public long
contentLength
() throws IOException {
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
);
/external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/
HttpEntityBody.java
30
@Override public long
contentLength
() {
/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/nanohttpd/fileupload/src/main/java/fi/iki/elonen/
NanoFileUpload.java
65
public long
contentLength
() {
89
return (int)
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/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
GZipIntegrationTest.java
122
Header
contentLength
= response.getFirstHeader("content-length");
123
assertNull("Content-Length should not be set when gzipping response",
contentLength
);
PutStreamIntegrationTest.java
62
int
contentLength
= Integer.parseInt(headers.get("content-length"));
67
body = new byte[
contentLength
];
68
dataInputStream.readFully(body, 0,
contentLength
);
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
FormEncodingBuilderTest.java
35
assertEquals(expected.length(), formEncoding.
contentLength
());
61
assertEquals(expected.length(), formEncoding.
contentLength
());
76
assertEquals(expected.length(), formEncoding.
contentLength
());
87
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/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);
RequestBodyCompression.java
88
@Override public long
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
...]
/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/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/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/
UrlDownloaderTask.java
116
int
contentLength
= progress[1];
117
if (
contentLength
== -1) {
120
mDialog.setMax(
contentLength
);
155
int
contentLength
= connection.getContentLength();
157
if (mFile.exists() &&
contentLength
== mFile.length()) {
168
publishProgress(0,
contentLength
);
171
if (bytesCopied !=
contentLength
&&
contentLength
!= -1) {
172
throw new IOException("Download incomplete: " + bytesCopied + " != " +
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
);
/libcore/ojluni/src/main/java/sun/net/www/
URLConnection.java
47
private int
contentLength
= -1;
207
int l =
contentLength
;
222
contentLength
= length;
Completed in 777 milliseconds
1
2
3
4
5
6