| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final UTFUtils. | |
| private static final String | |
| private static final String | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static long | Returns: the lengththe string s)Get the number of bytes used by the modified UTF-8 encoded form of the given string. |
| public static int | Returns: the lengththe string s)Get the number of bytes used by the modified UTF-8 encoded form of the given string. |
| public static String | Returns: the stringthe byte source input, final int the number of characters to read len)Read the given number of characters from the given byte input. |
| public static String | Returns: the stringthe byte source input, final long the number of bytes to read len)Read the given number of characters from the given byte input. |
| private static int | |
| public static String | Returns: the stringthe input input)Read a null-terminated modified UTF-8 string from the given byte input. |
| public static void | writeUTFBytes(final ByteOutput
the output to write to output, final String the string s)Write the modified UTF-8 form of the given string to the given output. |
| BYTES_HOLDER | back to summary |
|---|---|
| private static final UTFUtils. | |
| INVALID_BYTE | back to summary |
|---|---|
| private static final String INVALID_BYTE | |
| MALFORMED | back to summary |
|---|---|
| private static final String MALFORMED | |
| UTF_BUFS_BYTE_CNT | back to summary |
|---|---|
| private static final int UTF_BUFS_BYTE_CNT | |
| UTF_BUFS_CHAR_CNT | back to summary |
|---|---|
| private static final int UTF_BUFS_CHAR_CNT | |
| UTFUtils | back to summary |
|---|---|
| private UTFUtils() | |
| getLongUTFLength | back to summary |
|---|---|
| public static long getLongUTFLength(final String s) Get the number of bytes used by the modified UTF-8 encoded form of the given string.
| |
| getShortUTFLength | back to summary |
|---|---|
| public static int getShortUTFLength(final String s) throws UTFDataFormatException Get the number of bytes used by the modified UTF-8 encoded form of the given string. If the length is
greater than
| |
| readUTFBytes | back to summary |
|---|---|
| public static String readUTFBytes(final ByteInput input, final int len) throws IOException Read the given number of characters from the given byte input. The length given is in characters, NOT in bytes.
| |
| readUTFBytesByByteCount | back to summary |
|---|---|
| public static String readUTFBytesByByteCount(final ByteInput input, final long len) throws IOException Read the given number of characters from the given byte input. The length given is in bytes.
| |
| readUTFChar | back to summary |
|---|---|
| private static int readUTFChar(final ByteInput input) throws IOException | |
| readUTFZBytes | back to summary |
|---|---|
| public static String readUTFZBytes(final ByteInput input) throws IOException Read a null-terminated modified UTF-8 string from the given byte input. Bytes are read until a 0 is found or until the end of the stream, whichever comes first.
| |
| writeUTFBytes | back to summary |
|---|---|
| public static void writeUTFBytes(final ByteOutput output, final String s) throws IOException Write the modified UTF-8 form of the given string to the given output.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | initialValue()
Overrides java. |
| BytesHolder | back to summary |
|---|---|
| private BytesHolder() | |
| initialValue | back to summary |
|---|---|
| protected byte[] initialValue() Overrides java. Doc from java. Returns the current thread's "initial value" for this
thread-local variable. This method will be invoked the first
time a thread accesses the variable with the
| |