edu.stanford.nlp.io
Class BZip2PipedOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by edu.stanford.nlp.io.BZip2PipedOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class BZip2PipedOutputStream
extends java.io.OutputStream

Opens a outputstream for writing into a bzip2 file by piping into the bzip2 command. Output from bzip2 command is written into the specified file.

Author:
Angel Chang

Constructor Summary
BZip2PipedOutputStream(java.lang.String filename)
           
BZip2PipedOutputStream(java.lang.String filename, java.io.OutputStream err)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BZip2PipedOutputStream

public BZip2PipedOutputStream(java.lang.String filename)
                       throws java.io.IOException
Throws:
java.io.IOException

BZip2PipedOutputStream

public BZip2PipedOutputStream(java.lang.String filename,
                              java.io.OutputStream err)
                       throws java.io.IOException
Throws:
java.io.IOException
Method Detail

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException


Stanford NLP Group