Class ContentEntity
- java.lang.Object
-
- org.apache.http.entity.AbstractHttpEntity
-
- com.google.api.client.http.apache.ContentEntity
-
- All Implemented Interfaces:
org.apache.http.HttpEntity
final class ContentEntity extends org.apache.http.entity.AbstractHttpEntity
-
-
Field Summary
Fields Modifier and Type Field Description private long
contentLength
Content length or less than zero if not known.private StreamingContent
streamingContent
Streaming content.
-
Constructor Summary
Constructors Constructor Description ContentEntity(long contentLength, StreamingContent streamingContent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getContent()
long
getContentLength()
boolean
isRepeatable()
boolean
isStreaming()
void
writeTo(java.io.OutputStream out)
-
-
-
Field Detail
-
contentLength
private final long contentLength
Content length or less than zero if not known.
-
streamingContent
private final StreamingContent streamingContent
Streaming content.
-
-
Constructor Detail
-
ContentEntity
ContentEntity(long contentLength, StreamingContent streamingContent)
- Parameters:
contentLength
- content length or less than zero if not knownstreamingContent
- streaming content
-
-
Method Detail
-
getContent
public java.io.InputStream getContent()
-
getContentLength
public long getContentLength()
-
isRepeatable
public boolean isRepeatable()
-
isStreaming
public boolean isStreaming()
-
writeTo
public void writeTo(java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
-