net.sf.asyncobjects.io
Class TextPipe
java.lang.Object
net.sf.asyncobjects.AsyncUnicastServer<C>
net.sf.asyncobjects.io.Pipe<TextData,ATextInput,ATextOutput,ATextChannel>
net.sf.asyncobjects.io.TextPipe
- All Implemented Interfaces:
- ACloseable, AsyncObject, ExplicitSharing, AChannel<TextData,ATextInput,ATextOutput>, ATextChannel
public class TextPipe
- extends Pipe<TextData,ATextInput,ATextOutput,ATextChannel>
- implements ATextChannel
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
ATextChannel
interface. Note that input supports
AInput.pushback(BatchedData)
operation.
- Author:
- const
- See Also:
ATextChannel
Constructor Summary |
TextPipe(int size)
make a pipe |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextPipe
public TextPipe(int size)
- make a pipe
- Parameters:
size
- buffer size for pipe
createInput
protected ATextInput createInput()
- Specified by:
createInput
in class Pipe<TextData,ATextInput,ATextOutput,ATextChannel>
- Returns:
- an created input
- See Also:
Pipe.createInput()
createOutput
protected ATextOutput createOutput()
- Specified by:
createOutput
in class Pipe<TextData,ATextInput,ATextOutput,ATextChannel>
- Returns:
- an created output
- See Also:
Pipe.createOutput()
Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.