frysk.util
Class FlowControlWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
frysk.util.FlowControlWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class FlowControlWriter
- extends FilterWriter
Extension of Writer that allows output to be paused.
Field Summary |
private boolean |
paused
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
paused
private boolean paused
FlowControlWriter
public FlowControlWriter(Writer outStream)
- Parameters:
out
-
isPaused
public boolean isPaused()
pause
public void pause()
unpause
public void unpause()
flush
public void flush()
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class FilterWriter
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterWriter
- Throws:
IOException
write
public void write(char[] buf,
int offset,
int len)
throws IOException
- Overrides:
write
in class FilterWriter
- Throws:
IOException
write
public void write(int b)
throws IOException
- Overrides:
write
in class FilterWriter
- Throws:
IOException
write
public void write(String str,
int offset,
int len)
throws IOException
- Overrides:
write
in class FilterWriter
- Throws:
IOException