edu.stanford.nlp.util
Class SystemUtils.ProcessOutputStream
java.lang.Object
java.io.OutputStream
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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