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.
|
getTraceStream
getRegistration, isBlocking, setRegistration, toString
close, getWrappedChannel, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRegistration
isBlocking
public 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 WritableByteChannel
src
- The source buffer.IOException
Copyright © 2005–2018. All rights reserved.