| Modifier and Type | Class and Description |
|---|---|
| private static enum | |
| public static enum |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if charSequence consists entirely of the four legal
Ion whitespace characters.the CharSequence to test. charSequence)Ion whitespace is defined as one of the characters space, tab, newline, and carriage-return. |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true when the scalar can legally follow an Ion number. Returns false for the slash character'/'.the Unicode scalar to test. codePoint)Determines whether a given code point is one of the valid Ion numeric terminators. |
| public static boolean | |
| public static boolean | Returns: true if c is one of the four legal
Ion whitespace characters.the character to test. codePoint)Ion whitespace is defined as one of the characters space, tab, newline, and carriage-return. |
| public static void | |
| public static String | |
| public static void | |
| public static String | |
| private static void | printCodePoint(Appendable out, int c, IonTextUtils.
Prints a single code point, ASCII safe. |
| private static void | printCodePointAsEightHexDigits(Appendable out, int c)
Prints an eight-digit hex escape sequence,
|
| private static void | printCodePointAsFourHexDigits(Appendable out, int c)
Generates a four-digit hex escape sequence,
|
| public static String | printCodePointAsString(int
a Unicode code point. codePoint)Builds a String denoting an ASCII-encoded Ion string, with double-quotes surrounding a single Unicode code point. |
| private static void | printCodePointAsSurrogatePairHexDigits(Appendable out, int c)
Generates a surrogate pair as two four-digit hex escape sequences,
|
| private static void | printCodePointAsTwoHexDigits(Appendable out, int c)
Generates a two-digit hex escape sequence,
|
| private static void | |
| public static void | |
| public static String | |
| public static void | |
| public static String | |
| public static void | |
| public static String | |
| public static void | printJsonCodePoint(Appendable
the stream to receive the data. out, int a Unicode code point. codePoint)Prints a single Unicode code point for use in an ASCII-safe JSON string. |
| public static void | printJsonString(Appendable
the stream to receive the JSON data. out, CharSequence the text to print; may be text)null.Prints characters as an ASCII-encoded JSON string, including surrounding double-quotes. |
| public static String | printLongString(CharSequence
the text to print; may be text)null.Builds a String denoting an ASCII-encoded Ion "long string", including surrounding triple-quotes. |
| public static void | printLongString(Appendable
the stream to receive the data. out, CharSequence the text to print; may be text)null.Prints characters as an ASCII-encoded Ion "long string", including surrounding triple-quotes. |
| public static void | printQuotedSymbol(Appendable
the stream to receive the data. out, CharSequence the symbol text; may be text)null.Prints text as a single-quoted Ion symbol. |
| public static String | printQuotedSymbol(CharSequence
the symbol text; may be text)null.Builds a String containing a single-quoted Ion symbol. |
| public static void | printString(Appendable
the stream to receive the data. out, CharSequence the text to print; may be text)null.Prints characters as an ASCII-encoded Ion string, including surrounding double-quotes. |
| public static String | printString(CharSequence
the text to print; may be text)null.Builds a String denoting an ASCII-encoded Ion string, including surrounding double-quotes. |
| public static void | printStringCodePoint(Appendable
the stream to receive the data. out, int a Unicode code point. codePoint)Prints a single Unicode code point for use in an ASCII-safe Ion string. |
| public static void | printSymbol(Appendable
the stream to receive the Ion data. out, CharSequence the symbol text; may be text)null.Prints the text as an Ion symbol, including surrounding single-quotes if they are necessary. |
| public static String | Returns: a string containing the resulting Ion data.the symbol text; may be text)null.Prints the text as an Ion symbol, including surrounding single-quotes if they are necessary. |
| public static String | Returns: a string representing the symboltoken.the symbolToken to be printed. token)
|
| public static void | printSymbolCodePoint(Appendable
the stream to receive the data. out, int a Unicode code point. codePoint)Prints a single Unicode code point for use in an ASCII-safe Ion symbol. |
| public static IonTextUtils. | Returns: the variant of the symbol.must be a non-empty string. symbol)Determines whether the text of a symbol represents an identifier, an operator, or a symbol that always requires (single) quotes. |
| IonTextUtils | back to summary |
|---|---|
| public IonTextUtils() | |
| isAllWhitespace | back to summary |
|---|---|
| public static boolean isAllWhitespace(CharSequence charSequence) Ion whitespace is defined as one of the characters space, tab, newline, and carriage-return. This matches the definition of whitespace used by JSON.
| |
| isDigit | back to summary |
|---|---|
| public static boolean isDigit(int codePoint, int radix) | |
| isIdentifierPart | back to summary |
|---|---|
| public static boolean isIdentifierPart(int codePoint) | |
| isIdentifierStart | back to summary |
|---|---|
| public static boolean isIdentifierStart(int codePoint) | |
| isNumericStop | back to summary |
|---|---|
| public static boolean isNumericStop(int codePoint) Determines whether a given code point is one of the valid Ion numeric terminators.
The slash character
| |
| isOperatorPart | back to summary |
|---|---|
| public static boolean isOperatorPart(int codePoint) | |
| isWhitespace | back to summary |
|---|---|
| public static boolean isWhitespace(int codePoint) Ion whitespace is defined as one of the characters space, tab, newline, and carriage-return. This matches the definition of whitespace used by JSON.
| |
| printBlob | back to summary |
|---|---|
| public static void printBlob(Appendable out, byte[] value) throws IOException | |
| printBlob | back to summary |
|---|---|
| public static String printBlob(byte[] value) | |
| printClob | back to summary |
|---|---|
| public static void printClob(Appendable out, byte[] value) throws IOException | |
| printClob | back to summary |
|---|---|
| public static String printClob(byte[] value) | |
| printCodePoint | back to summary |
|---|---|
| private static void printCodePoint(Appendable out, int c, IonTextUtils. Prints a single code point, ASCII safe. | |
| printCodePointAsEightHexDigits | back to summary |
|---|---|
| private static void printCodePointAsEightHexDigits(Appendable out, int c) throws IOException Prints an eight-digit hex escape sequence,
| |
| printCodePointAsFourHexDigits | back to summary |
|---|---|
| private static void printCodePointAsFourHexDigits(Appendable out, int c) throws IOException Generates a four-digit hex escape sequence,
| |
| printCodePointAsString | back to summary |
|---|---|
| public static String printCodePointAsString(int codePoint) Builds a String denoting an ASCII-encoded Ion string, with double-quotes surrounding a single Unicode code point.
| |
| printCodePointAsSurrogatePairHexDigits | back to summary |
|---|---|
| private static void printCodePointAsSurrogatePairHexDigits(Appendable out, int c) throws IOException Generates a surrogate pair as two four-digit hex escape sequences,
| |
| printCodePointAsTwoHexDigits | back to summary |
|---|---|
| private static void printCodePointAsTwoHexDigits(Appendable out, int c) throws IOException Generates a two-digit hex escape sequence,
| |
| printCodePoints | back to summary |
|---|---|
private static void printCodePoints(Appendable out, CharSequence text, IonTextUtils.
| |
| printDecimal | back to summary |
|---|---|
| public static void printDecimal(Appendable out, BigDecimal decimal) throws IOException | |
| printDecimal | back to summary |
|---|---|
| public static String printDecimal(BigDecimal decimal) | |
| printFloat | back to summary |
|---|---|
| public static void printFloat(Appendable out, double value) throws IOException | |
| printFloat | back to summary |
|---|---|
| public static String printFloat(double value) | |
| printFloat | back to summary |
|---|---|
| public static void printFloat(Appendable out, Double value) throws IOException | |
| printFloat | back to summary |
|---|---|
| public static String printFloat(Double value) | |
| printJsonCodePoint | back to summary |
|---|---|
| public static void printJsonCodePoint(Appendable out, int codePoint) throws IOException Prints a single Unicode code point for use in an ASCII-safe JSON string.
| |
| printJsonString | back to summary |
|---|---|
| public static void printJsonString(Appendable out, CharSequence text) throws IOException Prints characters as an ASCII-encoded JSON string, including surrounding
double-quotes.
If the
| |
| printLongString | back to summary |
|---|---|
| public static String printLongString(CharSequence text) Builds a String denoting an ASCII-encoded Ion "long string",
including surrounding triple-quotes.
If the
| |
| printLongString | back to summary |
|---|---|
| public static void printLongString(Appendable out, CharSequence text) throws IOException Prints characters as an ASCII-encoded Ion "long string",
including surrounding triple-quotes.
If the
| |
| printQuotedSymbol | back to summary |
|---|---|
| public static void printQuotedSymbol(Appendable out, CharSequence text) throws IOException Prints text as a single-quoted Ion symbol.
If the
| |
| printQuotedSymbol | back to summary |
|---|---|
| public static String printQuotedSymbol(CharSequence text) Builds a String containing a single-quoted Ion symbol.
If the
| |
| printString | back to summary |
|---|---|
| public static void printString(Appendable out, CharSequence text) throws IOException Prints characters as an ASCII-encoded Ion string, including surrounding
double-quotes.
If the
| |
| printString | back to summary |
|---|---|
| public static String printString(CharSequence text) Builds a String denoting an ASCII-encoded Ion string,
including surrounding double-quotes.
If the
| |
| printStringCodePoint | back to summary |
|---|---|
| public static void printStringCodePoint(Appendable out, int codePoint) throws IOException Prints a single Unicode code point for use in an ASCII-safe Ion string.
| |
| printSymbol | back to summary |
|---|---|
| public static void printSymbol(Appendable out, CharSequence text) throws IOException Prints the text as an Ion symbol, including surrounding single-quotes if
they are necessary. Operator symbols such as
| |
| printSymbol | back to summary |
|---|---|
| public static String printSymbol(CharSequence text) Prints the text as an Ion symbol, including surrounding single-quotes if
they are necessary. Operator symbols such as
| |
| printSymbol | back to summary |
|---|---|
public static String printSymbol(SymbolToken token)
| |
| printSymbolCodePoint | back to summary |
|---|---|
| public static void printSymbolCodePoint(Appendable out, int codePoint) throws IOException Prints a single Unicode code point for use in an ASCII-safe Ion symbol.
| |
| symbolVariant | back to summary |
|---|---|
| public static IonTextUtils. Determines whether the text of a symbol represents an identifier, an operator, or a symbol that always requires (single) quotes.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final IonTextUtils. | |
| public static final IonTextUtils. | |
| public static final IonTextUtils. | |
| public static final IonTextUtils. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IonTextUtils. | |
| public static IonTextUtils. |
| ION_LONG_STRING | back to summary |
|---|---|
| public static final IonTextUtils. | |
| ION_STRING | back to summary |
|---|---|
| public static final IonTextUtils. | |
| ION_SYMBOL | back to summary |
|---|---|
| public static final IonTextUtils. | |
| JSON | back to summary |
|---|---|
| public static final IonTextUtils. | |
| EscapeMode | back to summary |
|---|---|
| private EscapeMode() | |
| valueOf | back to summary |
|---|---|
| public static IonTextUtils. | |
| values | back to summary |
|---|---|
| public static IonTextUtils. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final IonTextUtils. | |
| public static final IonTextUtils. | |
| public static final IonTextUtils. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IonTextUtils. | |
| public static IonTextUtils. |
| IDENTIFIER | back to summary |
|---|---|
| public static final IonTextUtils. | |
| OPERATOR | back to summary |
|---|---|
| public static final IonTextUtils. | |
| QUOTED | back to summary |
|---|---|
| public static final IonTextUtils. | |
| SymbolVariant | back to summary |
|---|---|
| private SymbolVariant() | |
| valueOf | back to summary |
|---|---|
| public static IonTextUtils. | |
| values | back to summary |
|---|---|
| public static IonTextUtils. | |