Package tv.hd3g.processlauncher.io
Class StdInInjection
- java.lang.Object
-
- java.io.OutputStream
-
- tv.hd3g.processlauncher.io.StdInInjection
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class StdInInjection extends OutputStream
-
-
Field Summary
Fields Modifier and Type Field Description static StringLINESEPARATOR
-
Constructor Summary
Constructors Constructor Description StdInInjection(OutputStream stdIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()StdInInjectionprintln(String text)Send text + new line + flushStdInInjectionprintln(String text, Charset destCharset)Send text + new line + flushvoidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Field Detail
-
LINESEPARATOR
public static final String LINESEPARATOR
-
-
Constructor Detail
-
StdInInjection
public StdInInjection(OutputStream stdIn)
-
-
Method Detail
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
println
public StdInInjection println(String text) throws IOException
Send text + new line + flush- Throws:
IOException
-
println
public StdInInjection println(String text, Charset destCharset) throws IOException
Send text + new line + flush- Throws:
IOException
-
-