public class IOUtils
IOUtils class.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANSI_BLACK
Constant
ANSI_BLACK="\u001B[30m" |
static java.lang.String |
ANSI_BLUE
Constant
ANSI_BLUE="\u001B[34m" |
static java.lang.String |
ANSI_CYAN
Constant
ANSI_CYAN="\u001B[36m" |
static java.lang.String |
ANSI_GREEN
Constant
ANSI_GREEN="\u001B[32m" |
static java.lang.String |
ANSI_PURPLE
Constant
ANSI_PURPLE="\u001B[35m" |
static java.lang.String |
ANSI_RED
Constant
ANSI_RED="\u001B[31m" |
static java.lang.String |
ANSI_RESET
Constant
ANSI_RESET="\u001B[0m" |
static java.lang.String |
ANSI_WHITE
Constant
ANSI_WHITE="\u001B[37m" |
static java.lang.String |
ANSI_YELLOW
Constant
ANSI_YELLOW="\u001B[33m" |
static java.nio.charset.Charset |
ASCII_CHARSET |
static java.nio.charset.Charset |
UTF8_CHARSET |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
forEachLine()
Iterate over text lines in the input stream until new line satisfies the given condition. The operation is non-buffering so after it, the stream position is at the end of stopping string. The iteration stops when stream is exhausted.
|
static java.lang.String |
format() |
static java.lang.String |
formatCaption() |
static java.lang.String |
formatDataPoint() |
static java.lang.String |
formatWidth() |
static int |
getDefaultTextWidth()
Get pre-defined default width for given value type
|
static java.io.File |
getFile() |
static java.util.Optional<java.lang.String> |
nextLine()
Return optional next line not fitting skip condition.
|
static java.lang.String[] |
parse() |
static NavigableValuesSource |
readColumnedData() |
static NavigableValuesSource |
readColumnedData() |
static NavigableValuesSource |
readColumnedData() |
static java.io.File[] |
readFileMask() |
static java.lang.String |
readString() |
static java.nio.file.Path |
resolvePath()
Resolve a path either in URI or local file form
|
static java.lang.String |
wrapANSI() |
static void |
writeString() |
public static java.nio.charset.Charset ASCII_CHARSET
public static java.nio.charset.Charset UTF8_CHARSET
public static java.lang.String ANSI_RESET
Constant ANSI_RESET="\u001B[0m"
public static java.lang.String ANSI_BLACK
Constant ANSI_BLACK="\u001B[30m"
public static java.lang.String ANSI_RED
Constant ANSI_RED="\u001B[31m"
public static java.lang.String ANSI_GREEN
Constant ANSI_GREEN="\u001B[32m"
public static java.lang.String ANSI_YELLOW
Constant ANSI_YELLOW="\u001B[33m"
public static java.lang.String ANSI_BLUE
Constant ANSI_BLUE="\u001B[34m"
public static java.lang.String ANSI_PURPLE
Constant ANSI_PURPLE="\u001B[35m"
public static java.lang.String ANSI_CYAN
Constant ANSI_CYAN="\u001B[36m"
public static java.lang.String ANSI_WHITE
Constant ANSI_WHITE="\u001B[37m"
public static java.lang.String wrapANSI()
public static java.nio.file.Path resolvePath()
Resolve a path either in URI or local file form
public static java.lang.String[] parse()
public static NavigableValuesSource readColumnedData()
public static NavigableValuesSource readColumnedData()
public static NavigableValuesSource readColumnedData()
public static java.lang.String formatCaption()
public static java.lang.String formatDataPoint()
public static java.io.File[] readFileMask()
public static java.io.File getFile()
public static int getDefaultTextWidth()
Get pre-defined default width for given value type
public static java.lang.String formatWidth()
public static java.lang.String format()
public static java.lang.String forEachLine()
Iterate over text lines in the input stream until new line satisfies the given condition. The operation is non-buffering so after it, the stream position is at the end of stopping string. The iteration stops when stream is exhausted.
public static java.util.Optional<java.lang.String> nextLine()
Return optional next line not fitting skip condition.
public static void writeString()
public static java.lang.String readString()