In particular these are: - PING - GO_AWAY
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public long | transferFrom(FileChannel
the file to read from src, long the position within the file from which the transfer is to begin position, long the number of bytes to be transferred count)Overrides io. Implements org. Transfer bytes into this channel from the given file. |
| public long | transferFrom(StreamSourceChannel
the source to read from source, long the number of bytes to be transferred count, ByteBuffer the buffer to copy through. throughBuffer)Overrides io. Implements org. Transfers bytes from the given channel source. |
| public long | write(ByteBuffer[]
The buffers from which bytes are to be retrieved srcs, int The offset within the buffer array of the first buffer from
which bytes are to be retrieved; must be non-negative and no
larger than offset, int srcs.lengthThe maximum number of buffers to be accessed; must be
non-negative and no larger than
length)srcs.length - offsetOverrides io. Implements java. Writes a sequence of bytes to this channel from a subsequence of the given buffers. |
| public long | write(ByteBuffer[]
The buffers from which bytes are to be retrieved srcs)Overrides io. Implements java. Writes a sequence of bytes to this channel from the given buffers. |
| public int | write(ByteBuffer
The buffer from which bytes are to be retrieved src)Overrides io. Implements java. Writes a sequence of bytes to this channel from the given buffer. |
| public long | writeFinal(ByteBuffer[]
The buffers from which bytes are to be retrieved srcs, int The offset within the buffer array of the first buffer from
which bytes are to be retrieved; must be non-negative and no
larger than srcs.length offset, int The maximum number of buffers to be accessed; must be
non-negative and no larger than
srcs.length - offset length)Overrides io. Implements org. Writes some data to the channel, with the same semantics as
|
| public long | writeFinal(ByteBuffer[]
The buffers from which bytes are to be retrieved srcs)Overrides io. Implements org. Writes some data to the channel, with the same semantics as
|
| public int | writeFinal(ByteBuffer
The data to write src)Overrides io. Implements org. Writes some data to the channel, with the same semantics as
|
| Http2NoDataStreamSinkChannel | back to summary |
|---|---|
| protected Http2NoDataStreamSinkChannel(Http2Channel channel) | |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(FileChannel src, long position, long count) throws IOException Overrides io. Implements org. Doc from org. Transfer bytes into this channel from the given file. Using this method in preference to
If the current thread is interrupted when this method is called, it may throw a
| |
| transferFrom | back to summary |
|---|---|
| public long transferFrom(StreamSourceChannel source, long count, ByteBuffer throughBuffer) throws IOException Overrides io. Implements org. Doc from org. Transfers bytes from the given channel source. On some platforms, this may avoid copying bytes between user
and kernel space. On other platforms, bytes are passed through the
If the current thread is interrupted when this method is called, it may throw a
| |
| write | back to summary |
|---|---|
| public long write(ByteBuffer[] srcs, int offset, int length) throws IOException Overrides io. Implements java. Doc from java. Writes a sequence of bytes to this channel from a subsequence of the given buffers. An attempt is made to write up to r bytes to this channel, where r is the total number of bytes remaining in the specified subsequence of the given buffer array, that is, srcs[offset].remaining() + srcs[offset+1].remaining() + ... + srcs[offset+length-1].remaining() Suppose that a byte sequence of length n is written, where
Unless otherwise specified, a write operation will return only after writing all of the r requested bytes. Some types of channels, depending upon their state, may write only some of the bytes or possibly none at all. A socket channel in non-blocking mode, for example, cannot write any more bytes than are free in the socket's output buffer. This method may be invoked at any time. If another thread has already initiated a write operation upon this channel, however, then an invocation of this method will block until the first operation is complete.
| |
| write | back to summary |
|---|---|
| public long write(ByteBuffer[] srcs) throws IOException Overrides io. Implements java. Doc from java. Writes a sequence of bytes to this channel from the given buffers. An invocation of this method of the form c.write(srcs, 0, srcs.length);
| |
| write | back to summary |
|---|---|
| public int write(ByteBuffer src) throws IOException Overrides io. Implements java. Doc from java. Writes a sequence of bytes to this channel from the given buffer. An attempt is made to write up to r bytes to the channel,
where r is the number of bytes remaining in the buffer, that is,
Suppose that a byte sequence of length n is written, where
Unless otherwise specified, a write operation will return only after writing all of the r requested bytes. Some types of channels, depending upon their state, may write only some of the bytes or possibly none at all. A socket channel in non-blocking mode, for example, cannot write any more bytes than are free in the socket's output buffer. This method may be invoked at any time. If another thread has already initiated a write operation upon this channel, however, then an invocation of this method will block until the first operation is complete.
| |
| writeFinal | back to summary |
|---|---|
| public long writeFinal(ByteBuffer[] srcs, int offset, int length) throws IOException Overrides io. Implements org. Doc from org. Writes some data to the channel, with the same semantics as
| |
| writeFinal | back to summary |
|---|---|
| public long writeFinal(ByteBuffer[] srcs) throws IOException Overrides io. Implements org. Doc from org. Writes some data to the channel, with the same semantics as
| |
| writeFinal | back to summary |
|---|---|
| public int writeFinal(ByteBuffer src) throws IOException Overrides io. Implements org. Doc from org. Writes some data to the channel, with the same semantics as
| |