@NotThreadSafe
public class ByteBufferEntity
extends org.apache.http.entity.AbstractHttpEntity
implements java.lang.Cloneable
ByteBuffer.| Constructor and Description |
|---|
ByteBufferEntity(java.nio.ByteBuffer buffer) |
ByteBufferEntity(java.nio.ByteBuffer buffer,
org.apache.http.entity.ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.io.InputStream |
getContent() |
long |
getContentLength() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(java.io.OutputStream outstream) |
public ByteBufferEntity(java.nio.ByteBuffer buffer,
org.apache.http.entity.ContentType contentType)
public ByteBufferEntity(java.nio.ByteBuffer buffer)
public boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntitypublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitypublic java.io.InputStream getContent()
throws java.io.IOException,
java.lang.UnsupportedOperationException
getContent in interface org.apache.http.HttpEntityjava.io.IOExceptionjava.lang.UnsupportedOperationExceptionpublic void writeTo(java.io.OutputStream outstream)
throws java.io.IOException
writeTo in interface org.apache.http.HttpEntityjava.io.IOExceptionpublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntitypublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException