public class ColorWriter
extends java.io.Writer
| Modifier and Type | Field and Description |
|---|---|
protected com.diogonunes.jcdp.color.ColoredPrinter |
coloredPrinter |
static java.lang.String |
CYAN |
static java.lang.String |
FAIL_COLOR |
static java.lang.String |
GRAY |
static java.lang.String |
GREEN |
static java.lang.String |
MAGENTA |
static java.lang.String |
OK_COLOR |
protected java.io.PrintStream |
printStream |
static java.lang.String |
WHITE |
static java.lang.String |
YELLOW |
| Constructor and Description |
|---|
ColorWriter() |
ColorWriter(java.io.PrintStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(char[] cbuf,
int off,
int len) |
public static final java.lang.String GRAY
public static final java.lang.String YELLOW
public static final java.lang.String WHITE
public static final java.lang.String GREEN
public static final java.lang.String CYAN
public static final java.lang.String MAGENTA
public static final java.lang.String OK_COLOR
public static final java.lang.String FAIL_COLOR
protected final com.diogonunes.jcdp.color.ColoredPrinter coloredPrinter
protected final java.io.PrintStream printStream
public ColorWriter()
public ColorWriter(java.io.PrintStream stream)
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOException