public class ReadableTraceChannel extends TraceChannel<ReadableSelectionChannel> implements ReadableSelectionChannel
SelectionChannel as some framework
classes rely on this down the processing chain.| Constructor and Description |
|---|
ReadableTraceChannel(ReadableSelectionChannel wrappedChannel)
Constructor.
|
ReadableTraceChannel(ReadableSelectionChannel wrappedChannel,
OutputStream traceStream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read(ByteBuffer dst)
Reads the available byte from the wrapped channel to the destination
buffer while writing them to the console.
|
getTraceStreamgetRegistration, isBlocking, setRegistration, toStringclose, getWrappedChannel, isOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRegistrationisBlockingpublic ReadableTraceChannel(ReadableSelectionChannel wrappedChannel)
wrappedChannel - The wrapped channel.public ReadableTraceChannel(ReadableSelectionChannel wrappedChannel, OutputStream traceStream)
wrappedChannel - The wrapped channel.traceStream - The trace stream.public int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChanneldst - The destination buffer.IOExceptionCopyright © 2005–2015. All rights reserved.