Generic text sink that enables optimized output of both ASCII and UTF-16.
| Modifier and Type | Field and Description |
|---|---|
| private final char[] | _fixedIntBuffer
ONLY FOR USE BY |
| private final boolean | |
| private static final String | |
| private static final String | |
| private static final boolean[] | |
| private static final boolean[] | |
| pack-priv static final String[] | JSON_ESCAPE_CODES
Escapes for U+00 through U+FF, for use in double-quoted JSON strings. |
| pack-priv static final String[] | LONG_STRING_ESCAPE_CODES
Escapes for U+00 through U+FF, for use in triple-quoted Ion strings. |
| private final _Private_FastAppendable | |
| public static final boolean[] | |
| private static final String[] | STRING_ESCAPE_CODES
Escapes for U+00 through U+FF, for use in double-quoted Ion strings. |
| pack-priv static final String[] | SYMBOL_ESCAPE_CODES
Escapes for U+00 through U+FF, for use in single-quoted Ion symbols. |
| private static final String | |
| public static final String[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private String | Returns: the string representation in base 10the integer to convert value)Convert |
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public void | flush()
Implements java. Flushes this stream by writing any buffered output to the underlying stream. |
| public static _Private_IonTextAppender | forAppendable(Appendable out, Charset
must be either charset)IonTextWriterBuilder#ASCII or
IonTextWriterBuilder#UTF8. When ASCII is used, all non-ASCII
characters will be escaped. Otherwise, only select code points will be
escaped.
|
| public static _Private_IonTextAppender | |
| public static _Private_IonTextAppender | |
| public static _Private_IonTextAppender | forOutputStream(OutputStream out, Charset
must be either charset)IonTextWriterBuilder#ASCII or
IonTextWriterBuilder#UTF8. When ASCII is used, all non-ASCII
characters will be escaped. Otherwise, only select code points will be
escaped.
|
| private static boolean | |
| private static boolean | |
| public static boolean | Returns: true if the text is an identifier keyword.the symbol to check. text)Determines whether the given text matches one of the Ion identifier
keywords |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public void | |
| public void | |
| private void | |
| private final void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public static boolean | Returns: true if the given symbol requires quoting.must be a non-empty string. symbol, boolean indicates whether the caller wants operators to be
quoted; if quoteOperators)true then operator symbols like !=
will return true.
has looser quoting requirements than other containers.Determines whether the text of a symbol requires (single) quotes. |
| _fixedIntBuffer | back to summary |
|---|---|
| private final char[] _fixedIntBuffer ONLY FOR USE BY | |
| escapeNonAscii | back to summary |
|---|---|
| private final boolean escapeNonAscii | |
| HEX_4_PREFIX | back to summary |
|---|---|
| private static final String HEX_4_PREFIX | |
| HEX_8_PREFIX | back to summary |
|---|---|
| private static final String HEX_8_PREFIX | |
| IDENTIFIER_FOLLOW_CHAR_FLAGS | back to summary |
|---|---|
| private static final boolean[] IDENTIFIER_FOLLOW_CHAR_FLAGS | |
| IDENTIFIER_START_CHAR_FLAGS | back to summary |
|---|---|
| private static final boolean[] IDENTIFIER_START_CHAR_FLAGS | |
| JSON_ESCAPE_CODES | back to summary |
|---|---|
| pack-priv static final String[] JSON_ESCAPE_CODES Escapes for U+00 through U+FF, for use in double-quoted JSON strings. This includes escapes for all LATIN-1 code points U+80 through U+FF. | |
| LONG_STRING_ESCAPE_CODES | back to summary |
|---|---|
| pack-priv static final String[] LONG_STRING_ESCAPE_CODES Escapes for U+00 through U+FF, for use in triple-quoted Ion strings. This includes escapes for all LATIN-1 code points U+80 through U+FF. | |
| myAppendable | back to summary |
|---|---|
| private final _Private_FastAppendable myAppendable | |
| OPERATOR_CHAR_FLAGS | back to summary |
|---|---|
| public static final boolean[] OPERATOR_CHAR_FLAGS | |
| STRING_ESCAPE_CODES | back to summary |
|---|---|
| private static final String[] STRING_ESCAPE_CODES Escapes for U+00 through U+FF, for use in double-quoted Ion strings. This includes escapes for all LATIN-1 code points U+80 through U+FF. | |
| SYMBOL_ESCAPE_CODES | back to summary |
|---|---|
| pack-priv static final String[] SYMBOL_ESCAPE_CODES Escapes for U+00 through U+FF, for use in single-quoted Ion symbols. This includes escapes for all LATIN-1 code points U+80 through U+FF. | |
| TRIPLE_QUOTES | back to summary |
|---|---|
| private static final String TRIPLE_QUOTES | |
| ZERO_PADDING | back to summary |
|---|---|
| public static final String[] ZERO_PADDING | |
| _Private_IonTextAppender | back to summary |
|---|---|
| pack-priv _Private_IonTextAppender(_Private_FastAppendable out, boolean escapeNonAscii) | |
| appendAscii | back to summary |
|---|---|
| public void appendAscii(char c) throws IOException | |
| appendAscii | back to summary |
|---|---|
| public void appendAscii(CharSequence csq) throws IOException | |
| appendAscii | back to summary |
|---|---|
| public void appendAscii(CharSequence csq, int start, int end) throws IOException | |
| appendUtf16 | back to summary |
|---|---|
| public void appendUtf16(char c) throws IOException | |
| appendUtf16Surrogate | back to summary |
|---|---|
| public void appendUtf16Surrogate(char leadSurrogate, char trailSurrogate) throws IOException | |
| bigIntegerToString | back to summary |
|---|---|
| private String bigIntegerToString(final BigInteger value) Convert
The current implementation of
This method delegates to
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements java. Doc from java. Flushes this stream by writing any buffered output to the underlying stream.
| |
| forAppendable | back to summary |
|---|---|
public static _Private_IonTextAppender forAppendable(Appendable out, Charset charset)
| |
| forAppendable | back to summary |
|---|---|
| public static _Private_IonTextAppender forAppendable(Appendable out) Doesn't escape non-ASCII characters. | |
| forFastAppendable | back to summary |
|---|---|
| public static _Private_IonTextAppender forFastAppendable(_Private_FastAppendable out, Charset charset) | |
| forOutputStream | back to summary |
|---|---|
public static _Private_IonTextAppender forOutputStream(OutputStream out, Charset charset)
| |
| is8bitValue | back to summary |
|---|---|
| private static boolean is8bitValue(int v) | |
| isDecimalDigit | back to summary |
|---|---|
| private static boolean isDecimalDigit(int codePoint) | |
| isIdentifierKeyword | back to summary |
|---|---|
| public static boolean isIdentifierKeyword(CharSequence text) Determines whether the given text matches one of the Ion identifier
keywords
This does not check for non-identifier keywords such as
| |
| isIdentifierPart | back to summary |
|---|---|
| public static boolean isIdentifierPart(int codePoint) | |
| isIdentifierStart | back to summary |
|---|---|
| public static boolean isIdentifierStart(int codePoint) | |
| isOperatorPart | back to summary |
|---|---|
| public static boolean isOperatorPart(int codePoint) | |
| printBlob | back to summary |
|---|---|
| public void printBlob(_Private_IonTextWriterBuilder _options, byte[] value, int start, int len) throws IOException | |
| printClob | back to summary |
|---|---|
| public void printClob(_Private_IonTextWriterBuilder _options, byte[] value, int start, int len) throws IOException | |
| printClobBytes | back to summary |
|---|---|
| private void printClobBytes(byte[] value, int start, int end, String[] escapes) throws IOException | |
| printCodePoints | back to summary |
|---|---|
| private final void printCodePoints(CharSequence text, String[] escapes) throws IOException | |
| printDecimal | back to summary |
|---|---|
| public void printDecimal(_Private_IonTextWriterBuilder _options, BigDecimal value) throws IOException | |
| printFloat | back to summary |
|---|---|
| public void printFloat(_Private_IonTextWriterBuilder _options, double value) throws IOException | |
| printFloat | back to summary |
|---|---|
| public void printFloat(_Private_IonTextWriterBuilder _options, Double value) throws IOException | |
| printInt | back to summary |
|---|---|
| public void printInt(long value) throws IOException | |
| printInt | back to summary |
|---|---|
| public void printInt(BigInteger value) throws IOException | |
| printJsonString | back to summary |
|---|---|
| public final void printJsonString(CharSequence text) throws IOException Print a JSON string | |
| printLongString | back to summary |
|---|---|
| public final void printLongString(CharSequence text) throws IOException Print an Ion triple-quoted string | |
| printQuotedSymbol | back to summary |
|---|---|
| public final void printQuotedSymbol(CharSequence text) throws IOException Print single-quoted Ion Symbol type | |
| printString | back to summary |
|---|---|
| public final void printString(CharSequence text) throws IOException Print an Ion String type | |
| printSymbol | back to summary |
|---|---|
| public final void printSymbol(CharSequence text) throws IOException Print an Ion Symbol type. This method will check if symbol needs quoting | |
| symbolNeedsQuoting | back to summary |
|---|---|
| public static boolean symbolNeedsQuoting(CharSequence symbol, boolean quoteOperators) Determines whether the text of a symbol requires (single) quotes.
| |