edu.stanford.nlp.util
Class SystemUtils.ProcessOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by edu.stanford.nlp.util.SystemUtils.ProcessOutputStream
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
SystemUtils

public static class SystemUtils.ProcessOutputStream
extends OutputStream

Helper class that acts as a output stream to a process


Constructor Summary
SystemUtils.ProcessOutputStream(ProcessBuilder builder, Writer output, Writer error)
           
SystemUtils.ProcessOutputStream(String[] cmd)
           
SystemUtils.ProcessOutputStream(String[] cmd, Writer writer)
           
SystemUtils.ProcessOutputStream(String[] cmd, Writer output, Writer error)
           
 
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

SystemUtils.ProcessOutputStream

public SystemUtils.ProcessOutputStream(String[] cmd)
                                throws IOException
Throws:
IOException

SystemUtils.ProcessOutputStream

public SystemUtils.ProcessOutputStream(String[] cmd,
                                       Writer writer)
                                throws IOException
Throws:
IOException

SystemUtils.ProcessOutputStream

public SystemUtils.ProcessOutputStream(String[] cmd,
                                       Writer output,
                                       Writer error)
                                throws IOException
Throws:
IOException

SystemUtils.ProcessOutputStream

public SystemUtils.ProcessOutputStream(ProcessBuilder builder,
                                       Writer output,
                                       Writer error)
                                throws IOException
Throws:
IOException
Method Detail

flush

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

write

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

close

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


Stanford NLP Group