protected class HttpTunnelConnection.TunnelChannel
extends java.lang.Object
implements java.nio.channels.WritableByteChannel
WritableByteChannel used to transfer traffic.| Constructor and Description |
|---|
TunnelChannel(java.nio.channels.WritableByteChannel incomingChannel,
java.io.Closeable closeable) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
int |
write(java.nio.ByteBuffer src) |
public TunnelChannel(java.nio.channels.WritableByteChannel incomingChannel,
java.io.Closeable closeable)
public boolean isOpen()
isOpen in interface java.nio.channels.Channelpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
write in interface java.nio.channels.WritableByteChanneljava.io.IOException