T - Color typepublic class ColorizedOutputStream<T> extends AnsiOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected OutputStreamControlTracker<T> |
backgroundControl |
protected OutputStreamControlTracker<BasicDecoration> |
bold |
protected OutputStreamControlTracker<T> |
foregroundControl |
protected OutputStreamControlTracker<BasicDecoration> |
italic |
protected OutputStreamControlTracker<BasicDecoration> |
strikeThrough |
protected OutputStreamControlTracker<BasicDecoration> |
underline |
out| Constructor and Description |
|---|
ColorizedOutputStream(OutputStream output,
ControlCodeSource<T> foregroundColorSource,
ControlCodeSource<T> backgroundColorSource) |
| Modifier and Type | Method and Description |
|---|---|
ColorizedOutputStream<T> |
resetBackgroundColor() |
ColorizedOutputStream<T> |
resetForegroundColor() |
ColorizedOutputStream<T> |
setBackgroundColor(T color) |
ColorizedOutputStream<T> |
setBold(boolean enabled) |
protected void |
setDecoration(boolean enabled,
BasicDecoration decoration,
OutputStreamControlTracker<BasicDecoration> control) |
ColorizedOutputStream<T> |
setForegroundColor(T color) |
ColorizedOutputStream<T> |
setItalic(boolean enabled) |
ColorizedOutputStream<T> |
setStrikeThrough(boolean enabled) |
ColorizedOutputStream<T> |
setUnderline(boolean enabled) |
applyAll, close, registerControl, registerControls, reset, resetAll, write, write, writeprotected OutputStreamControlTracker<T> foregroundControl
protected OutputStreamControlTracker<T> backgroundControl
protected OutputStreamControlTracker<BasicDecoration> bold
protected OutputStreamControlTracker<BasicDecoration> italic
protected OutputStreamControlTracker<BasicDecoration> underline
protected OutputStreamControlTracker<BasicDecoration> strikeThrough
public ColorizedOutputStream(OutputStream output, ControlCodeSource<T> foregroundColorSource, ControlCodeSource<T> backgroundColorSource)
public ColorizedOutputStream<T> setForegroundColor(T color)
public ColorizedOutputStream<T> resetForegroundColor()
public ColorizedOutputStream<T> setBackgroundColor(T color)
public ColorizedOutputStream<T> resetBackgroundColor()
public ColorizedOutputStream<T> setBold(boolean enabled)
public ColorizedOutputStream<T> setItalic(boolean enabled)
public ColorizedOutputStream<T> setUnderline(boolean enabled)
public ColorizedOutputStream<T> setStrikeThrough(boolean enabled)
protected final void setDecoration(boolean enabled,
BasicDecoration decoration,
OutputStreamControlTracker<BasicDecoration> control)
Copyright © 2012–2022. All rights reserved.