Class ReadableTraceChannel
- java.lang.Object
-
- org.restlet.ext.nio.internal.channel.WrapperChannel<T>
-
- org.restlet.ext.nio.internal.channel.WrapperSelectionChannel<T>
-
- org.restlet.ext.nio.internal.channel.TraceChannel<ReadableSelectionChannel>
-
- org.restlet.ext.nio.internal.channel.ReadableTraceChannel
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.Channel,java.nio.channels.ReadableByteChannel,BlockableChannel,ReadableSelectionChannel,SelectionChannel
@Deprecated public class ReadableTraceChannel extends TraceChannel<ReadableSelectionChannel> implements ReadableSelectionChannel
Deprecated.Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.Trace byte channel that sends a copy of all data on the trace output stream. It is important to implementSelectionChannelas some framework classes rely on this down the processing chain.
-
-
Constructor Summary
Constructors Constructor Description ReadableTraceChannel(ReadableSelectionChannel wrappedChannel)Deprecated.Constructor.ReadableTraceChannel(ReadableSelectionChannel wrappedChannel, java.io.OutputStream traceStream)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intread(java.nio.ByteBuffer dst)Deprecated.Reads the available byte from the wrapped channel to the destination buffer while writing them to the console.-
Methods inherited from class org.restlet.ext.nio.internal.channel.TraceChannel
getTraceStream
-
Methods inherited from class org.restlet.ext.nio.internal.channel.WrapperSelectionChannel
getRegistration, isBlocking, setRegistration, toString
-
Methods inherited from class org.restlet.ext.nio.internal.channel.WrapperChannel
close, getWrappedChannel, isOpen
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.restlet.engine.io.BlockableChannel
isBlocking
-
Methods inherited from interface org.restlet.engine.io.SelectionChannel
getRegistration
-
-
-
-
Constructor Detail
-
ReadableTraceChannel
public ReadableTraceChannel(ReadableSelectionChannel wrappedChannel)
Deprecated.Constructor.- Parameters:
wrappedChannel- The wrapped channel.
-
ReadableTraceChannel
public ReadableTraceChannel(ReadableSelectionChannel wrappedChannel, java.io.OutputStream traceStream)
Deprecated.Constructor.- Parameters:
wrappedChannel- The wrapped channel.traceStream- The trace stream.
-
-
Method Detail
-
read
public int read(java.nio.ByteBuffer dst) throws java.io.IOExceptionDeprecated.Reads the available byte from the wrapped channel to the destination buffer while writing them to the console.- Specified by:
readin interfacejava.nio.channels.ReadableByteChannel- Parameters:
dst- The destination buffer.- Returns:
- The number of bytes read.
- Throws:
java.io.IOException
-
-