| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | ByteArrayEntity(final byte[] b, final int off, final int len, final ContentType contentType, final String contentEncoding, final boolean chunked)
|
| public | ByteArrayEntity(final byte[] b, final int off, final int len, final ContentType contentType, final String contentEncoding)
|
| public | ByteArrayEntity(final byte[] b, final ContentType contentType, final String contentEncoding, final boolean chunked)
|
| public | |
| public | |
| public | |
| public | ByteArrayEntity(final byte[] b, final int off, final int len, final ContentType contentType, final boolean chunked)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | close()
Implements java. |
| public final InputStream | getContent()
Implements org. |
| public final long | getContentLength()
Implements org. |
| public final boolean | isRepeatable()
Overrides org. Implements org. |
| public final boolean | isStreaming()
Implements org. |
| public final void | writeTo(final OutputStream
the output stream to write entity content to outStream)Overrides org. Implements org. |
| b | back to summary |
|---|---|
| private final byte[] b | |
| len | back to summary |
|---|---|
| private final int len | |
| off | back to summary |
|---|---|
| private final int off | |
| ByteArrayEntity | back to summary |
|---|---|
public ByteArrayEntity(final byte[] b, final int off, final int len, final ContentType contentType, final String contentEncoding, final boolean chunked)
| |
| ByteArrayEntity | back to summary |
|---|---|
public ByteArrayEntity(final byte[] b, final int off, final int len, final ContentType contentType, final String contentEncoding)
| |
| ByteArrayEntity | back to summary |
|---|---|
public ByteArrayEntity(final byte[] b, final ContentType contentType, final String contentEncoding, final boolean chunked)
| |
| ByteArrayEntity | back to summary |
|---|---|
public ByteArrayEntity(final byte[] b, final ContentType contentType, final String contentEncoding)
| |
| ByteArrayEntity | back to summary |
|---|---|
| public ByteArrayEntity(final byte[] b, final ContentType contentType, final boolean chunked) | |
| ByteArrayEntity | back to summary |
|---|---|
| public ByteArrayEntity(final byte[] b, final ContentType contentType) | |
| ByteArrayEntity | back to summary |
|---|---|
| public ByteArrayEntity(final byte[] b, final int off, final int len, final ContentType contentType, final boolean chunked) | |
| ByteArrayEntity | back to summary |
|---|---|
| public ByteArrayEntity(final byte[] b, final int off, final int len, final ContentType contentType) | |
| close | back to summary |
|---|---|
| public final void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| getContent | back to summary |
|---|---|
| public final InputStream getContent() Implements org. Doc from org. Returns a content stream of the entity.
If this entity belongs to an incoming HTTP message, calling
Important Note Please note all entity implementations must ensure that
all allocated resources are properly deallocated after
the
| |
| getContentLength | back to summary |
|---|---|
| public final long getContentLength() Implements org. Doc from org. Returns length of the entity, if known.
| |
| isRepeatable | back to summary |
|---|---|
| public final boolean isRepeatable() Overrides org. Implements org. Doc from org. Tells if the entity is capable of producing its data more than once. A repeatable entity's getContent() and writeTo(OutputStream) methods can be called more than once whereas a non-repeatable entity's can not.
| |
| isStreaming | back to summary |
|---|---|
| public final boolean isStreaming() Implements org. Doc from org. Tells whether this entity depends on an underlying stream.
Streamed entities that read data directly from the socket should
return
| |
| writeTo | back to summary |
|---|---|
| public final void writeTo(final OutputStream outStream) throws IOException Overrides org. Implements org. Doc from org. Writes the entity content out to the output stream. Important Note Please note all entity implementations must ensure that all allocated resources are properly deallocated when this method returns.
| |