java.lang.Object | ||
↳ | org.apache.http.nio.util.ExpandableBuffer | |
↳ | org.apache.http.nio.util.SimpleOutputBuffer |
Basic implementation of the ContentOutputBuffer
interface.
This class is not thread safe.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.nio.util.ExpandableBuffer
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.nio.util.ExpandableBuffer
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Writes content from this buffer to the given
ContentEncoder . | |||||||||||
Resets the buffer by clearing its state and stored content.
| |||||||||||
Writes
len bytes from the specified byte array
starting at offset off to this buffer. | |||||||||||
Writes the specified byte to this buffer.
| |||||||||||
Indicates the content has been fully written.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.nio.util.ExpandableBuffer
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.io.BufferInfo
| |||||||||||
From interface
org.apache.http.nio.util.BufferInfo
| |||||||||||
From interface
org.apache.http.nio.util.ContentOutputBuffer
|
Writes content from this buffer to the given ContentEncoder
.
encoder | content encoder. |
---|
IOException |
---|
Resets the buffer by clearing its state and stored content.
Writes len
bytes from the specified byte array
starting at offset off
to this buffer.
If off
is negative, or len
is negative, or
off+len
is greater than the length of the array
b
, this method can throw a runtime exception. The exact type
of runtime exception thrown by this method depends on implementation.
b | the data. |
---|---|
off | the start offset in the data. |
len | the number of bytes to write. |
IOException |
---|
Indicates the content has been fully written.