edu.stanford.nlp.util
Class SystemUtils.ProcessOutputStream
java.lang.Object
java.io.OutputStream
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
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 |
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
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