net.sf.asyncobjects.io
Class BytePipe
java.lang.Object
net.sf.asyncobjects.AsyncUnicastServer<C>
net.sf.asyncobjects.io.Pipe<BinaryData,AByteInput,AByteOutput,AByteChannel>
net.sf.asyncobjects.io.BytePipe
- All Implemented Interfaces:
- ACloseable, AsyncObject, ExplicitSharing, AByteChannel, AChannel<BinaryData,AByteInput,AByteOutput>
public class BytePipe
- extends Pipe<BinaryData,AByteInput,AByteOutput,AByteChannel>
- implements AByteChannel
A pipe is pair of output stream and input stream, what is written to output
stream, could be later read from input stream. The object supports
AByteChannel
interface. Note that input supports
AInput.pushback(BatchedData)
operation.
- Author:
- const
- See Also:
AByteChannel
Constructor Summary |
BytePipe(int size)
make a pipe |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BytePipe
public BytePipe(int size)
- make a pipe
- Parameters:
size
- buffer size for pipe
createInput
protected AByteInput createInput()
- Specified by:
createInput
in class Pipe<BinaryData,AByteInput,AByteOutput,AByteChannel>
- Returns:
- an created input
- See Also:
Pipe.createInput()
createOutput
protected AByteOutput createOutput()
- Specified by:
createOutput
in class Pipe<BinaryData,AByteInput,AByteOutput,AByteChannel>
- Returns:
- an created output
- See Also:
Pipe.createOutput()
Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.