Http2Stream.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Source.
The helper factory class to create |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static Source. | |
| public abstract boolean | |
| public abstract Buffer | |
| public abstract void | |
| public abstract int |
| Source | back to summary |
|---|---|
| pack-priv Source() | |
| factory | back to summary |
|---|---|
| public static Source. Returns the | |
| hasRemaining | back to summary |
|---|---|
| public abstract boolean hasRemaining() Returns true if there is more data to be written, or false otherwise. | |
| read | back to summary |
|---|---|
| public abstract Buffer read(final int length) throws Http2StreamException Returns the number of bytes to be written.
| |
| release | back to summary |
|---|---|
| public abstract void release() The method is called, when the source might be released/closed. | |
| remaining | back to summary |
|---|---|
| public abstract int remaining() Returns the number of bytes remaining to be written. | |
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Http2Stream |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Source |
| stream | back to summary |
|---|---|
| private final Http2Stream stream | |
| SourceFactory | back to summary |
|---|---|
| private SourceFactory(final Http2Stream stream) | |
| createBufferSource | back to summary |
|---|---|
| public Source createBufferSource(final Buffer buffer) | |
| Modifier and Type | Field and Description |
|---|---|
| private Buffer | |
| private boolean | |
| private final Http2Stream |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | hasRemaining()
Implements abstract org. Returns true if there is more data to be written, or false otherwise. |
| public Buffer | read(final int length)
Implements abstract org. Returns the number of bytes to be written. |
| public void | release()
Implements abstract org. The method is called, when the source might be released/closed. |
| public int | remaining()
Implements abstract org. Returns the number of bytes remaining to be written. |
| buffer | back to summary |
|---|---|
| private Buffer buffer | |
| isClosed | back to summary |
|---|---|
| private boolean isClosed | |
| stream | back to summary |
|---|---|
| private final Http2Stream stream | |
| BufferSource | back to summary |
|---|---|
| protected BufferSource(final Buffer buffer, final Http2Stream stream) | |
| hasRemaining | back to summary |
|---|---|
| public boolean hasRemaining() Implements abstract org. Doc from org. Returns true if there is more data to be written, or false otherwise.
| |
| read | back to summary |
|---|---|
| public Buffer read(final int length) throws Http2StreamException Implements abstract org. Doc from org. Returns the number of bytes to be written.
| |
| release | back to summary |
|---|---|
| public void release() Implements abstract org. Doc from org. The method is called, when the source might be released/closed.
| |
| remaining | back to summary |
|---|---|
| public int remaining() Implements abstract org. Doc from org. Returns the number of bytes remaining to be written.
| |