public class WritableTraceChannel extends TraceChannel<WritableSelectionChannel> implements WritableSelectionChannel
SelectionChannel as some framework
classes rely on this down the processing chain.| Constructor and Description |
|---|
WritableTraceChannel(WritableSelectionChannel wrappedChannel)
Constructor.
|
WritableTraceChannel(WritableSelectionChannel wrappedChannel,
OutputStream traceStream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
write(ByteBuffer src)
Writes 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 WritableTraceChannel(WritableSelectionChannel wrappedChannel)
wrappedChannel - The wrapped channel.public WritableTraceChannel(WritableSelectionChannel wrappedChannel, OutputStream traceStream)
wrappedChannel - The wrapped channel.traceStream - The trace stream.public int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelsrc - The source buffer.IOExceptionCopyright © 2005–2015. All rights reserved.