public abstract class AnsiOutputStream extends PrintStream
out| Constructor and Description |
|---|
AnsiOutputStream(OutputStream output) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyAll()
Method which applies any necessary controls to the stream
|
void |
close() |
void |
registerControl(OutputStreamControlTracker control)
Registers a control
|
void |
registerControls(OutputStreamControlTracker... controls)
Registers some controls
|
void |
reset(boolean full)
Resets the stream to the default state i.e.
|
protected void |
resetAll()
Method which resets the state of any controls that have been previously
enabled and applied to the stream
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public AnsiOutputStream(OutputStream output)
public final void registerControl(OutputStreamControlTracker control)
This method can be useful if you wish to add additional controls beyond those provided by a specific class derived from this abstract class.
control - Controlpublic final void registerControls(OutputStreamControlTracker... controls)
controls - Controlspublic void write(int b)
write in class PrintStreampublic void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
write in class PrintStreamprotected final void applyAll()
public void reset(boolean full)
full - If true do a full graphics reset in addition to resetting the
individual controlspublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class PrintStreamprotected final void resetAll()
Copyright © 2012–2022. All rights reserved.