Class ContentEntity
java.lang.Object
org.apache.http.entity.AbstractHttpEntity
com.google.api.client.http.apache.v2.ContentEntity
- All Implemented Interfaces:
org.apache.http.HttpEntity
final class ContentEntity
extends org.apache.http.entity.AbstractHttpEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
Content length or less than zero if not known.private final StreamingContent
Streaming content.Fields inherited from class org.apache.http.entity.AbstractHttpEntity
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
-
Field Details
-
contentLength
private final long contentLengthContent length or less than zero if not known. -
streamingContent
Streaming content.
-
-
Constructor Details
-
ContentEntity
ContentEntity(long contentLength, StreamingContent streamingContent) - Parameters:
contentLength
- content length or less than zero if not knownstreamingContent
- streaming content
-
-
Method Details
-
getContent
-
getContentLength
public long getContentLength() -
isRepeatable
public boolean isRepeatable() -
isStreaming
public boolean isStreaming() -
writeTo
- Throws:
IOException
-