Class WritableTraceChannel
- 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<WritableSelectionChannel>
-
- org.restlet.ext.nio.internal.channel.WritableTraceChannel
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.Channel,java.nio.channels.WritableByteChannel,BlockableChannel,SelectionChannel,WritableSelectionChannel
@Deprecated public class WritableTraceChannel extends TraceChannel<WritableSelectionChannel> implements WritableSelectionChannel
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 WritableTraceChannel(WritableSelectionChannel wrappedChannel)Deprecated.Constructor.WritableTraceChannel(WritableSelectionChannel wrappedChannel, java.io.OutputStream traceStream)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intwrite(java.nio.ByteBuffer src)Deprecated.Writes 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
-
WritableTraceChannel
public WritableTraceChannel(WritableSelectionChannel wrappedChannel)
Deprecated.Constructor.- Parameters:
wrappedChannel- The wrapped channel.
-
WritableTraceChannel
public WritableTraceChannel(WritableSelectionChannel wrappedChannel, java.io.OutputStream traceStream)
Deprecated.Constructor.- Parameters:
wrappedChannel- The wrapped channel.traceStream- The trace stream.
-
-
Method Detail
-
write
public int write(java.nio.ByteBuffer src) throws java.io.IOExceptionDeprecated.Writes the available byte from the wrapped channel to the destination buffer while writing them to the console.- Specified by:
writein interfacejava.nio.channels.WritableByteChannel- Parameters:
src- The source buffer.- Returns:
- The number of bytes written.
- Throws:
java.io.IOException
-
-