Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class TerminalWriter extends PrintWriter
out| Constructor and Description |
|---|
TerminalWriter(Writer out) |
TerminalWriter(Writer out,
boolean autoFlush) |
| Modifier and Type | Method and Description |
|---|---|
void |
attributesOff() |
void |
boldOn() |
void |
clearScreen() |
boolean |
isEnabled() |
static boolean |
isSupported() |
String |
progressOutput(String lastVerboseString,
String newVerboseString) |
static String |
progressOutput(String lastVerboseString,
String newVerboseString,
PrintStream out)
(Over)writes a progress line to the given PrintStream.
|
static String |
progressOutput(String lastVerboseString,
String newVerboseString,
Writer out)
(Over)writes a progress line to the given PrintStream.
|
void |
setEnabled(boolean enabled)
Enables the special features of the terminal writer.
|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, writepublic TerminalWriter(Writer out)
public TerminalWriter(Writer out, boolean autoFlush)
public static boolean isSupported()
public static String progressOutput(String lastVerboseString, String newVerboseString, PrintStream out)
lastVerboseString - The last line outputnewVerboseString - The new line to displaypublic static String progressOutput(String lastVerboseString, String newVerboseString, Writer out) throws IOException
lastVerboseString - The last line outputnewVerboseString - The new line to displayIOExceptionpublic void attributesOff()
throws IOException
IOExceptionpublic void boldOn()
throws IOException
IOExceptionpublic void clearScreen()
throws IOException
IOExceptionpublic boolean isEnabled()
public void setEnabled(boolean enabled)
public String progressOutput(String lastVerboseString, String newVerboseString) throws IOException
Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.