- java.lang.Object
-
- java.io.OutputStream
-
- org.jline.utils.ScreenTerminalOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class ScreenTerminalOutputStream extends java.io.OutputStreamAn OutputStream that decodes bytes and writes them to aScreenTerminal, feeding any VT100 responses back as terminal input.This class unifies the output stream pattern used when a
ScreenTerminalis wired to aLineDisciplineTerminal.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScreenTerminalOutputStream.DelegateOutputStreamA placeholder OutputStream whose delegate can be set after construction.
-
Constructor Summary
Constructors Constructor Description ScreenTerminalOutputStream(ScreenTerminal screenTerminal, java.nio.charset.Charset charset, java.io.OutputStream feedbackOutput)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(byte[] b, int off, int len)voidwrite(int b)
-
-
-
Constructor Detail
-
ScreenTerminalOutputStream
public ScreenTerminalOutputStream(ScreenTerminal screenTerminal, java.nio.charset.Charset charset, java.io.OutputStream feedbackOutput)
-
-
Method Detail
-
write
public void write(int b)
- Specified by:
writein classjava.io.OutputStream
-
write
public void write(byte[] b, int off, int len)- Overrides:
writein classjava.io.OutputStream
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-
-