java.lang.Object
swim.codec.Unicode
Unicode code point
Input
/Output
/Writer
factory.
The Unicode.stringInput(...)
family of functions return an
Input
that reads the Unicode code points of a String
.
The Unicode.stringOutput(...)
family of functions return an
Output
that writes Unicode code points to an internal buffer, and bind
a String
containing all written code points.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <O> Parser<O>
static <O> Parser<O>
outputParser
(Output<O> output) parseLine
(Input input, StringBuilder output) static <O> Parser<O>
static <O> Parser<O>
parseOutput
(Input input, Output<O> output) parseString
(Input input) parseString
(Input input, StringBuilder builder) static Input
stringInput
(String string) Returns a newOutput
that buffers Unicode code points.stringOutput
(int initialCapacity) stringOutput
(int initialCapacity, OutputSettings settings) stringOutput
(String string) Returns a newOutput
that appends Unicode code points to the givenstring
.stringOutput
(StringBuilder builder) Returns a newOutput
that writes Unicode code points to the given stringbuilder
.stringOutput
(StringBuilder builder, OutputSettings settings) Returns a newOutput
that writes Unicode code points to the given stringbuilder
, using the given outputsettings
.stringOutput
(String string, OutputSettings settings) Returns a newOutput
that appends Unicode code points to the givenstring
, using the given outputsettings
.stringOutput
(OutputSettings settings) Returns a newOutput
that buffers Unicode code points, using the given outputsettings
.stringParser
(StringBuilder builder) static <I,
O> Writer<I, O> stringWriter
(O input) writeString
(Output<?> output, Object input)
-
Method Details
-
stringInput
-
stringOutput
Returns a newOutput
that writes Unicode code points to the given stringbuilder
, using the given outputsettings
. The returnedOutput
accepts an unbounded number of code points, remaining permanently in the cont state, andbinds
aString
containing all written code points. -
stringOutput
Returns a newOutput
that writes Unicode code points to the given stringbuilder
. The returnedOutput
accepts an unbounded number of code points, remaining permanently in the cont state, andbinds
aString
containing all written code points. -
stringOutput
Returns a newOutput
that appends Unicode code points to the givenstring
, using the given outputsettings
. The returnedOutput
accepts an unbounded number of code points, remaining permanently in the cont state, andbinds
aString
containing the givenstring
, and all appended code points. -
stringOutput
Returns a newOutput
that appends Unicode code points to the givenstring
. The returnedOutput
accepts an unbounded number of code points, remaining permanently in the cont state, andbinds
aString
containing the givenstring
, and all appended code points. -
stringOutput
-
stringOutput
-
stringOutput
Returns a newOutput
that buffers Unicode code points, using the given outputsettings
. The returnedOutput
accepts an unbounded number of code points, remaining permanently in the cont state, andbinds
aString
containing all written code points. -
stringOutput
Returns a newOutput
that buffers Unicode code points. The returnedOutput
accepts an unbounded number of code points, remaining permanently in the cont state, andbinds
aString
containing all written code points. -
stringParser
-
stringParser
-
parseString
-
parseString
-
outputParser
-
parseOutput
-
nullParser
-
parseNull
-
stringWriter
-
stringWriter
-
writeString
-
lineParser
-
parseLine
-
parseLine
-