Constructor and Description |
---|
TextOf(byte... bytes)
Ctor.
|
TextOf(Bytes bytes)
Ctor.
|
TextOf(Bytes bytes,
Charset cset)
Ctor.
|
TextOf(Bytes bytes,
String cset)
Ctor.
|
TextOf(char... chars)
Ctor.
|
TextOf(char[] chars,
Charset cset)
Ctor.
|
TextOf(CharSequence builder)
Ctor.
|
TextOf(CharSequence builder,
Charset cset)
Ctor.
|
TextOf(Date date)
Formats the date with ISO format using the system zone.
|
TextOf(Date date,
DateTimeFormatter formatter)
Formats the date using the format and locale using the system default
zone.
|
TextOf(Date date,
String format)
Formats the date with to format using the default locale and the system
zone.
|
TextOf(Date date,
String format,
Locale locale)
Formats the date using the format and locale using the system default
zone.
|
TextOf(File file)
Ctor.
|
TextOf(Input input)
Ctor.
|
TextOf(Input input,
Charset cset)
Ctor.
|
TextOf(Input input,
int max)
Ctor.
|
TextOf(Input input,
int max,
Charset cset)
Ctor.
|
TextOf(InputStream input)
Ctor.
|
TextOf(Input input,
String cset)
Ctor.
|
TextOf(Iterable<?> iterable)
Ctor.
|
TextOf(Iterator<Character> iterator)
Ctor.
|
TextOf(LocalDate date)
Formats date using ISO date time format.
|
TextOf(LocalDate date,
DateTimeFormatter formatter)
Formats the date using the provided formatter.
|
TextOf(LocalDate date,
String format)
Formats date using provided date time format string using default locale.
|
TextOf(LocalDate date,
String format,
Locale locale)
Formats the date using the provided format string using the provided
locale.
|
TextOf(LocalDateTime date)
Formats date using ISO date time format.
|
TextOf(LocalDateTime date,
DateTimeFormatter formatter)
Formats the date using the provided formatter.
|
TextOf(LocalDateTime date,
String format)
Formats date using provided date time format string using default locale.
|
TextOf(LocalDateTime date,
String format,
Locale locale)
Formats the date using the provided format string using the provided
locale.
|
TextOf(OffsetDateTime date)
Formats date using ISO date time format.
|
TextOf(OffsetDateTime date,
DateTimeFormatter formatter)
Formats the date using the provided formatter.
|
TextOf(OffsetDateTime date,
String format)
Formats date using provided date time format string using default locale.
|
TextOf(OffsetDateTime date,
String format,
Locale locale)
Formats the date using the provided format string using the provided
locale.
|
TextOf(Path path)
Ctor.
|
TextOf(Reader rdr)
Ctor.
|
TextOf(Reader rdr,
Charset cset)
Ctor.
|
TextOf(Reader rdr,
int max,
Charset cset)
Ctor.
|
TextOf(Scalar<String> scalar)
Ctor.
|
TextOf(StackTraceElement... strace)
Ctor.
|
TextOf(StackTraceElement[] strace,
CharSequence charset)
Ctor.
|
TextOf(StackTraceElement[] strace,
Charset charset)
Ctor.
|
TextOf(String input)
Ctor.
|
TextOf(String input,
Charset cset)
Ctor.
|
TextOf(Throwable error)
Ctor.
|
TextOf(Throwable error,
CharSequence charset)
Ctor.
|
TextOf(Throwable error,
Charset charset)
Ctor.
|
TextOf(URI uri)
Ctor.
|
TextOf(URL url)
Ctor.
|
TextOf(ZonedDateTime date)
Formats date using ISO date time format.
|
TextOf(ZonedDateTime date,
DateTimeFormatter formatter)
Formats the date using the provided formatter.
|
TextOf(ZonedDateTime date,
String format)
Formats date using provided date time format string using default locale.
|
TextOf(ZonedDateTime date,
String format,
Locale locale)
Formats the date using the provided format string using the provided
locale.
|
Modifier and Type | Method and Description |
---|---|
String |
asString()
Convert it to the string.
|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
public TextOf(Input input)
input
- The Inputpublic TextOf(URL url)
url
- The URLpublic TextOf(URI uri)
uri
- The URIpublic TextOf(Path path)
path
- The Inputpublic TextOf(File file)
file
- The Inputpublic TextOf(Input input, int max)
input
- The inputmax
- Max length of the buffer for readingpublic TextOf(Input input, Charset cset)
input
- The Inputcset
- The Charsetpublic TextOf(Input input, String cset)
input
- The Inputcset
- The Charsetpublic TextOf(Input input, int max, Charset cset)
input
- The inputmax
- Max length of the buffer for readingcset
- The Charsetpublic TextOf(Reader rdr)
rdr
- Readerpublic TextOf(Reader rdr, int max, Charset cset)
rdr
- Readermax
- Buffer sizecset
- Charsetpublic TextOf(CharSequence builder)
builder
- The String builderpublic TextOf(CharSequence builder, Charset cset)
builder
- The String buildercset
- The Charsetpublic TextOf(char... chars)
chars
- The charspublic TextOf(char[] chars, Charset cset)
chars
- The charscset
- The charsetpublic TextOf(Throwable error)
error
- The exception to serializepublic TextOf(Throwable error, Charset charset)
error
- The exception to serializecharset
- Charsetpublic TextOf(Throwable error, CharSequence charset)
error
- The exception to serializecharset
- Charsetpublic TextOf(StackTraceElement... strace)
strace
- The stacktrace to serializepublic TextOf(StackTraceElement[] strace, Charset charset)
strace
- The stacktrace to serializecharset
- Charsetpublic TextOf(StackTraceElement[] strace, CharSequence charset)
strace
- The stacktrace to serializecharset
- Charsetpublic TextOf(byte... bytes)
bytes
- The array of bytespublic TextOf(Bytes bytes)
bytes
- The Bytespublic TextOf(Bytes bytes, Charset cset)
bytes
- The Bytescset
- The Charsetpublic TextOf(Bytes bytes, String cset)
bytes
- The Bytescset
- The Charsetpublic TextOf(String input)
input
- The Stringpublic TextOf(String input, Charset cset)
input
- The Stringcset
- The Charsetpublic TextOf(Iterable<?> iterable)
iterable
- The iterable to convert to stringpublic TextOf(Iterator<Character> iterator)
iterator
- The iterable to convert to stringpublic TextOf(InputStream input)
input
- The InputStream where the text is read frompublic TextOf(LocalDate date)
date
- The date to format.public TextOf(LocalDate date, String format)
date
- The date to format.format
- The format to use.public TextOf(LocalDate date, String format, Locale locale)
date
- The date to format.format
- The format string to use.locale
- The locale to use.public TextOf(LocalDate date, DateTimeFormatter formatter)
date
- The date to format.formatter
- The formatter to use.public TextOf(LocalDateTime date, DateTimeFormatter formatter)
date
- The date to format.formatter
- The formatter to use.public TextOf(LocalDateTime date)
date
- The date to format.public TextOf(LocalDateTime date, String format)
date
- The date to format.format
- The format to use.public TextOf(LocalDateTime date, String format, Locale locale)
date
- The date to format.format
- The format string to use.locale
- The locale to use.public TextOf(Date date)
date
- The date to format.public TextOf(Date date, String format)
date
- The date to format.format
- The format to use.public TextOf(Date date, String format, Locale locale)
date
- The date to format.format
- The format to use.locale
- The locale to use.public TextOf(Date date, DateTimeFormatter formatter)
date
- The date to format.formatter
- The formatter to use.public TextOf(OffsetDateTime date)
date
- The date to format.public TextOf(OffsetDateTime date, String format)
date
- The date to format.format
- The format to use.public TextOf(OffsetDateTime date, String format, Locale locale)
date
- The date to format.format
- The format string to use.locale
- The locale to use.public TextOf(OffsetDateTime date, DateTimeFormatter formatter)
date
- The date to format.formatter
- The formatter to use.public TextOf(ZonedDateTime date)
date
- The date to format.public TextOf(ZonedDateTime date, String format)
date
- The date to format.format
- The format to use.public TextOf(ZonedDateTime date, String format, Locale locale)
date
- The date to format.format
- The format string to use.locale
- The locale to use.public TextOf(ZonedDateTime date, DateTimeFormatter formatter)
date
- The date to format.formatter
- The formatter to use.Copyright © 2017–2020 Cactoos. All rights reserved.