net.sf.asyncobjects.io
Class BufferedTextOutput
java.lang.Object
net.sf.asyncobjects.AsyncUnicastServer<O>
net.sf.asyncobjects.io.BufferedOutput<TextData,ATextOutput>
net.sf.asyncobjects.io.BufferedTextOutput
- All Implemented Interfaces:
- ACloseable, AsyncObject, ExplicitSharing, AOutput<TextData>, ATextOutput
public class BufferedTextOutput
- extends BufferedOutput<TextData,ATextOutput>
- implements ATextOutput
Buffered output. The output waits util data will surpass specified limit, and
only after it it writes bulk of the data. The write to underlying stream
could be forced with AOutput.flush()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferedTextOutput
public BufferedTextOutput(ATextOutput output,
int limit)
- A constructor from stream and buffer size
- Parameters:
output
- an underlying output streamlimit
- a limit, after limit is surpassed, data is sent to underlying
stream
Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.