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.InputStream
getContent()
long
getContentLength()
boolean
isRepeatable()
boolean
isStreaming()
void
writeTo(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:
isRepeatable
in interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceorg.apache.http.HttpEntity
-
getContent
public java.io.InputStream getContent()
- Specified by:
getContent
in interfaceorg.apache.http.HttpEntity
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException
- Specified by:
writeTo
in interfaceorg.apache.http.HttpEntity
- Throws:
java.io.IOException
-
isStreaming
public boolean isStreaming()
- Specified by:
isStreaming
in interfaceorg.apache.http.HttpEntity
-
-