frysk.util
Class FlowControlWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.FilterWriter
          extended by 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
           
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
FlowControlWriter(Writer outStream)
           
 
Method Summary
 void close()
           
 void flush()
           
 boolean isPaused()
           
 void pause()
           
 void unpause()
           
 void write(char[] buf, int offset, int len)
           
 void write(int b)
           
 void write(String str, int offset, int len)
           
 
Methods inherited from class java.io.Writer
append, append, append, append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

paused

private boolean paused
Constructor Detail

FlowControlWriter

public FlowControlWriter(Writer outStream)
Parameters:
out -
Method Detail

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