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