Package org.apache.http.client.fluent
Class InternalByteArrayEntity
- java.lang.Object
-
- org.apache.http.entity.AbstractHttpEntity
-
- org.apache.http.client.fluent.InternalByteArrayEntity
-
- All Implemented Interfaces:
java.lang.Cloneable,org.apache.http.HttpEntity
class InternalByteArrayEntity extends org.apache.http.entity.AbstractHttpEntity implements java.lang.Cloneable
-
-
Constructor Summary
Constructors Constructor Description InternalByteArrayEntity(byte[] b)InternalByteArrayEntity(byte[] b, int off, int len)InternalByteArrayEntity(byte[] b, int off, int len, org.apache.http.entity.ContentType contentType)InternalByteArrayEntity(byte[] b, org.apache.http.entity.ContentType contentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetContent()longgetContentLength()booleanisRepeatable()booleanisStreaming()voidwriteTo(java.io.OutputStream outStream)
-
-
-
Constructor Detail
-
InternalByteArrayEntity
public InternalByteArrayEntity(byte[] b, org.apache.http.entity.ContentType contentType)
-
InternalByteArrayEntity
public InternalByteArrayEntity(byte[] b, int off, int len, org.apache.http.entity.ContentType contentType)
-
InternalByteArrayEntity
public InternalByteArrayEntity(byte[] b)
-
InternalByteArrayEntity
public InternalByteArrayEntity(byte[] b, int off, int len)
-
-
Method Detail
-
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatablein interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceorg.apache.http.HttpEntity
-
getContent
public java.io.InputStream getContent()
- Specified by:
getContentin interfaceorg.apache.http.HttpEntity
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException- Specified by:
writeToin interfaceorg.apache.http.HttpEntity- Throws:
java.io.IOException
-
isStreaming
public boolean isStreaming()
- Specified by:
isStreamingin interfaceorg.apache.http.HttpEntity
-
-