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 InputstringInput(String string) Returns a newOutputthat buffers Unicode code points.stringOutput(int initialCapacity) stringOutput(int initialCapacity, OutputSettings settings) stringOutput(String string) Returns a newOutputthat appends Unicode code points to the givenstring.stringOutput(StringBuilder builder) Returns a newOutputthat writes Unicode code points to the given stringbuilder.stringOutput(StringBuilder builder, OutputSettings settings) Returns a newOutputthat writes Unicode code points to the given stringbuilder, using the given outputsettings.stringOutput(String string, OutputSettings settings) Returns a newOutputthat appends Unicode code points to the givenstring, using the given outputsettings.stringOutput(OutputSettings settings) Returns a newOutputthat 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 newOutputthat writes Unicode code points to the given stringbuilder, using the given outputsettings. The returnedOutputaccepts an unbounded number of code points, remaining permanently in the cont state, andbindsaStringcontaining all written code points. -
stringOutput
Returns a newOutputthat writes Unicode code points to the given stringbuilder. The returnedOutputaccepts an unbounded number of code points, remaining permanently in the cont state, andbindsaStringcontaining all written code points. -
stringOutput
Returns a newOutputthat appends Unicode code points to the givenstring, using the given outputsettings. The returnedOutputaccepts an unbounded number of code points, remaining permanently in the cont state, andbindsaStringcontaining the givenstring, and all appended code points. -
stringOutput
Returns a newOutputthat appends Unicode code points to the givenstring. The returnedOutputaccepts an unbounded number of code points, remaining permanently in the cont state, andbindsaStringcontaining the givenstring, and all appended code points. -
stringOutput
-
stringOutput
-
stringOutput
Returns a newOutputthat buffers Unicode code points, using the given outputsettings. The returnedOutputaccepts an unbounded number of code points, remaining permanently in the cont state, andbindsaStringcontaining all written code points. -
stringOutput
Returns a newOutputthat buffers Unicode code points. The returnedOutputaccepts an unbounded number of code points, remaining permanently in the cont state, andbindsaStringcontaining all written code points. -
stringParser
-
stringParser
-
parseString
-
parseString
-
outputParser
-
parseOutput
-
nullParser
-
parseNull
-
stringWriter
-
stringWriter
-
writeString
-
lineParser
-
parseLine
-
parseLine
-