Package org.jline.builtins
Class ScreenTerminalOutputStream
java.lang.Object
java.io.OutputStream
org.jline.builtins.ScreenTerminalOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
An OutputStream that decodes bytes and writes them to a
ScreenTerminal,
feeding any VT100 responses back as terminal input.
This class unifies the output stream pattern used when a ScreenTerminal
is wired to a LineDisciplineTerminal.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA placeholder OutputStream whose delegate can be set after construction. -
Constructor Summary
ConstructorsConstructorDescriptionScreenTerminalOutputStream(ScreenTerminal screenTerminal, Charset charset, OutputStream feedbackOutput) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
ScreenTerminalOutputStream
public ScreenTerminalOutputStream(ScreenTerminal screenTerminal, Charset charset, OutputStream feedbackOutput)
-
-
Method Details
-
write
public void write(int b) - Specified by:
writein classOutputStream
-
write
public void write(byte[] b, int off, int len) - Overrides:
writein classOutputStream
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-