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:
java.io.Closeable, java.io.Flushable
Enclosing class:
SystemUtils

public static class SystemUtils.ProcessOutputStream
extends java.io.OutputStream

Helper class that acts as a output stream to a process


Constructor Summary
SystemUtils.ProcessOutputStream(java.lang.ProcessBuilder builder, java.io.Writer output, java.io.Writer error)
           
SystemUtils.ProcessOutputStream(java.lang.String[] cmd)
           
SystemUtils.ProcessOutputStream(java.lang.String[] cmd, java.io.Writer writer)
           
SystemUtils.ProcessOutputStream(java.lang.String[] cmd, java.io.Writer output, java.io.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(java.lang.String[] cmd)
                                throws java.io.IOException
Throws:
java.io.IOException

SystemUtils.ProcessOutputStream

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

SystemUtils.ProcessOutputStream

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

SystemUtils.ProcessOutputStream

public SystemUtils.ProcessOutputStream(java.lang.ProcessBuilder builder,
                                       java.io.Writer output,
                                       java.io.Writer error)
                                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