Deprecated
use NIO / EPOLL / KQUEUE transport.
| Modifier and Type | Field and Description |
|---|---|
| private static final InputStream | |
| private static final OutputStream | |
| private InputStream | |
| private OutputStream | |
| private WritableByteChannel |
| Access | Constructor and Description |
|---|---|
| protected | OioByteStreamChannel(Channel
the parent parent)Channel which was used to create this instance. This can be null if the
has no parent as it was created by your self.Create a new instance |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| protected int | available()
Implements abstract io. |
| private static void | |
| protected void | |
| protected int | doReadBytes(ByteBuf
the buf)ByteBuf into which the read bytes will be writtenImplements abstract io. |
| protected void | doWriteBytes(ByteBuf
the buf)ByteBuf which holds the data to transferImplements abstract io. ByteBuf to the underlying Socket.
|
| protected void | doWriteFileRegion(FileRegion
the region)FileRegion which holds the data to transferImplements abstract io. FileRegion to the underlying Socket.
|
| public boolean | isActive()
Implements io. true if the Channel is active and so connected.
|
| CLOSED_IN | back to summary |
|---|---|
| private static final InputStream CLOSED_IN | |
| CLOSED_OUT | back to summary |
|---|---|
| private static final OutputStream CLOSED_OUT | |
| is | back to summary |
|---|---|
| private InputStream is | |
| os | back to summary |
|---|---|
| private OutputStream os | |
| outChannel | back to summary |
|---|---|
| private WritableByteChannel outChannel | |
| OioByteStreamChannel | back to summary |
|---|---|
| protected OioByteStreamChannel(Channel parent) Create a new instance | |
| activate | back to summary |
|---|---|
| protected final void activate(InputStream is, OutputStream os) Activate this instance. After this call | |
| available | back to summary |
|---|---|
| protected int available() Implements abstract io. Doc from io. Return the number of bytes ready to read from the underlying Socket.
| |
| checkEOF | back to summary |
|---|---|
| private static void checkEOF(FileRegion region) throws IOException | |
| doClose | back to summary |
|---|---|
| protected void doClose() throws Exception Implements abstract io. Doc from io. Close the
| |
| doReadBytes | back to summary |
|---|---|
| protected int doReadBytes(ByteBuf buf) throws Exception Implements abstract io. Doc from io. Read bytes from the underlying Socket. | |
| doWriteBytes | back to summary |
|---|---|
| protected void doWriteBytes(ByteBuf buf) throws Exception Implements abstract io. Doc from io. Write the data which is hold by the | |
| doWriteFileRegion | back to summary |
|---|---|
| protected void doWriteFileRegion(FileRegion region) throws Exception Implements abstract io. Doc from io. Write the data which is hold by the
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() Implements io. Doc from io. Return
| |