Unless stated otherwise, all methods assume that
byte[] arguments denote a Latin-1 string byte array
int) are in
number of characters, i.e., the number of bytes/chars for
Latin-1 strings, and the number of Unicode
code units for UTF-16 strings
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static boolean | |
| pack-priv static boolean | |
| pack-priv static char | |
| pack-priv static byte | |
| pack-priv static int | Returns: 0 if value is equal to other, a value
less than 0 if value is lexicographically less than
other; a value greater than 0 otherwise.a Latin-1 string byte array value, byte[] a Latin-1 string byte array other)Lexicographically compares two Latin-1 strings as specified in
|
| pack-priv static int | Returns: 0 if the value prefix is equal to the
other prefix, a value less than 0 if the value
prefix is lexicographically less than the other prefix; a
value greater than 0 otherwise.a Latin-1 string byte array value, byte[] a Latin-1 string byte array other, int the number of characters in len1, int value to comparethe number of characters in len2)other to compareLexicographically compares two Latin-1 string prefixes as specified in
|
| private static int | |
| pack-priv static int | |
| pack-priv static int | |
| pack-priv static int | |
| private static int | |
| private static int | |
| pack-priv static int | |
| pack-priv static int | Returns: 0 if the value is equal to the other, a
value less than 0 if the value is lexicographically less
than the other; a value greater than 0 otherwise.a Latin-1 string byte array value, byte[] a UTF-16 string byte array other)Lexicographically compares a Latin-1 string to a UTF-16 string as
specified in |
| pack-priv static int | compareToUTF16(byte[]
a Latin-1 string byte array value, byte[] a UTF-16 string byte array other, int the number of characters in len1, int value to comparethe number of characters in len2)other to compareLexicographically compares a Latin-1 string prefix to a UTF-16 one as
specified in |
| private static int | |
| private static int | |
| pack-priv static boolean | Returns: true if provided byte arrays contain identical content; false otherwisea byte array value, byte[] a byte array other)Returns |
| private static boolean | |
| pack-priv static void | |
| pack-priv static char | |
| pack-priv static void | |
| pack-priv static int | |
| pack-priv static int | Returns: the index of the first character matching the provided one in the given target string sub-range;-1 otherwisea Latin-1 string byte array to search in value, int a character to search for ch, int the index (inclusive) of the first character in the sub-range fromIndex, int the index (exclusive) of the last character in the sub-range toIndex)Finds the index of the first character matching the provided one in the given Latin-1 string byte array sub-range. |
| pack-priv static int | Returns: the index of the first character of the matchingvalue
sub-range if a match is found; -1 otherwisea Latin-1 string byte array to search in value, byte[] a Latin-1 string byte array to search for str)Searches for the first occurrence of |
| pack-priv static int | Returns: the index of the first character of the matchingvalue
sub-range if a match is found; -1 otherwisea Latin-1 string byte array to search in value, int the index (exclusive) of the last character in valueToIndex, byte[] valuea Latin-1 string byte array to search for str, int the index (exclusive) of the last character in strToIndex, int strthe index (inclusive) of the first character in valueFromIndex)valueSearches for the first occurrence of the given |
| private static int | |
| private static int | |
| private static int | |
| pack-priv static int | |
| pack-priv static byte[] | |
| pack-priv static void | inflate(byte[]
the source Latin-1 string byte array src, int the index (inclusive) of the first character in srcOff, char[] srcthe target dst, int char arraythe index (inclusive) of the first character in dstOff, int dstthe maximum number of characters to copy len)Copies characters from a Latin-1 string byte array sub-range to the
given |
| pack-priv static void | inflate(byte[]
the source Latin-1 string byte array src, int the index (inclusive) of the first character in srcOff, byte[] srcthe target UTF-16 string byte array dst, int the index (inclusive) of the first character in dstOff, int dstthe maximum number of characters to copy len)Copies characters from a Latin-1 string byte array sub-range to a UTF-16 one. |
| private static void | |
| private static void | |
| pack-priv static int | |
| pack-priv static int | |
| pack-priv static int | |
| pack-priv static int | |
| pack-priv static Stream | |
| pack-priv static String | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static byte[] | |
| pack-priv static char[] | |
| pack-priv static String | |
| private static String | |
| pack-priv static String | |
| private static String | |
| pack-priv static String |
| StringLatin1 | back to summary |
|---|---|
| pack-priv StringLatin1() | |
| canEncode | back to summary |
|---|---|
| pack-priv static boolean canEncode(char cp) | |
| canEncode | back to summary |
|---|---|
| pack-priv static boolean canEncode(int cp) | |
| charAt | back to summary |
|---|---|
| pack-priv static char charAt(byte[] value, int index) | |
| coderFromChar | back to summary |
|---|---|
| pack-priv static byte coderFromChar(char cp) | |
| compareTo | back to summary |
|---|---|
| pack-priv static int compareTo(byte[] value, byte[] other) Lexicographically compares two Latin-1 strings as specified in
| |
| compareTo | back to summary |
|---|---|
| pack-priv static int compareTo(byte[] value, byte[] other, int len1, int len2) Lexicographically compares two Latin-1 string prefixes as specified in
| |
| compareTo0 | back to summary |
|---|---|
private static int compareTo0(byte[] value, byte[] other)
| |
| compareToCI | back to summary |
|---|---|
| pack-priv static int compareToCI(byte[] value, byte[] other) Case-insensitive | |
| compareToCI_UTF16 | back to summary |
|---|---|
| pack-priv static int compareToCI_UTF16(byte[] value, byte[] other) Case-insensitive | |
| compareToFC | back to summary |
|---|---|
| pack-priv static int compareToFC(byte[] value, byte[] other) | |
| compareToFC0 | back to summary |
|---|---|
| private static int compareToFC0(byte[] value, int off, int last, byte[] other, int ooff, int olast) | |
| compareToFC0_UTF16 | back to summary |
|---|---|
| private static int compareToFC0_UTF16(byte[] value, int off, int last, byte[] other, int ooff, int olast) | |
| compareToFC_UTF16 | back to summary |
|---|---|
| pack-priv static int compareToFC_UTF16(byte[] value, byte[] other) | |
| compareToUTF16 | back to summary |
|---|---|
| pack-priv static int compareToUTF16(byte[] value, byte[] other) Lexicographically compares a Latin-1 string to a UTF-16 string as
specified in
| |
| compareToUTF16 | back to summary |
|---|---|
| pack-priv static int compareToUTF16(byte[] value, byte[] other, int len1, int len2) Lexicographically compares a Latin-1 string prefix to a UTF-16 one as
specified in
| |
| compareToUTF16_0 | back to summary |
|---|---|
private static int compareToUTF16_0(byte[] value, byte[] other)
| |
| compareToUTF16Values | back to summary |
|---|---|
| private static int compareToUTF16Values(byte[] value, byte[] other, int len1, int len2) | |
| equals | back to summary |
|---|---|
| pack-priv static boolean equals(byte[] value, byte[] other) Returns
| |
| equals0 | back to summary |
|---|---|
private static boolean equals0(byte[] value, byte[] other)
| |
| getBytes | back to summary |
|---|---|
| pack-priv static void getBytes(byte[] value, int srcBegin, int srcEnd, byte[] dst, int dstBegin) | |
| getChar | back to summary |
|---|---|
| pack-priv static char getChar(byte[] val, int index) | |
| getChars | back to summary |
|---|---|
| pack-priv static void getChars(byte[] value, int srcBegin, int srcEnd, char[] dst, int dstBegin) | |
| hashCode | back to summary |
|---|---|
| pack-priv static int hashCode(byte[] value) | |
| indexOf | back to summary |
|---|---|
| pack-priv static int indexOf(byte[] value, int ch, int fromIndex, int toIndex) Finds the index of the first character matching the provided one in the
given Latin-1 string byte array sub-range.
| |
| indexOf | back to summary |
|---|---|
| pack-priv static int indexOf(byte[] value, byte[] str) Searches for the first occurrence of
| |
| indexOf | back to summary |
|---|---|
| pack-priv static int indexOf(byte[] value, int valueToIndex, byte[] str, int strToIndex, int valueFromIndex) Searches for the first occurrence of the given
| |
| indexOf0 | back to summary |
|---|---|
private static int indexOf0(byte[] value, byte[] str)
| |
| indexOf0 | back to summary |
|---|---|
private static int indexOf0(byte[] value, int valueToIndex, byte[] str, int strToIndex, int valueFromIndex)
| |
| indexOfChar0 | back to summary |
|---|---|
private static int indexOfChar0(byte[] value, int ch, int fromIndex, int max)
| |
| indexOfNonWhitespace | back to summary |
|---|---|
| pack-priv static int indexOfNonWhitespace(byte[] value) | |
| inflate | back to summary |
|---|---|
| pack-priv static byte[] inflate(byte[] value, int off, int len) | |
| inflate | back to summary |
|---|---|
| pack-priv static void inflate(byte[] src, int srcOff, char[] dst, int dstOff, int len) Copies characters from a Latin-1 string byte array sub-range to the
given This effectively inflates the content from a 1 byte per character representation to a 2 byte one.
| |
| inflate | back to summary |
|---|---|
| pack-priv static void inflate(byte[] src, int srcOff, byte[] dst, int dstOff, int len) Copies characters from a Latin-1 string byte array sub-range to a UTF-16 one. This effectively inflates the content from a 1 byte per character representation to a 2 byte one.
| |
| inflate0 | back to summary |
|---|---|
private static void inflate0(byte[] src, int srcOff, char[] dst, int dstOff, int len)
| |
| inflate0 | back to summary |
|---|---|
private static void inflate0(byte[] src, int srcOff, byte[] dst, int dstOff, int len)
| |
| lastIndexOf | back to summary |
|---|---|
| pack-priv static int lastIndexOf(byte[] src, int srcCount, byte[] tgt, int tgtCount, int fromIndex) | |
| lastIndexOf | back to summary |
|---|---|
| pack-priv static int lastIndexOf(final byte[] value, int ch, int fromIndex) | |
| lastIndexOfNonWhitespace | back to summary |
|---|---|
| pack-priv static int lastIndexOfNonWhitespace(byte[] value) | |
| length | back to summary |
|---|---|
| pack-priv static int length(byte[] value) | |
| lines | back to summary |
|---|---|
| pack-priv static Stream | |
| newString | back to summary |
|---|---|
| pack-priv static String newString(byte[] val, int index, int len) | |
| putCharsAt | back to summary |
|---|---|
| pack-priv static void putCharsAt(byte[] value, int i, char c1, char c2, char c3, char c4) | |
| putCharsAt | back to summary |
|---|---|
| pack-priv static void putCharsAt(byte[] value, int i, char c1, char c2, char c3, char c4, char c5) | |
| regionMatchesCI | back to summary |
|---|---|
| pack-priv static boolean regionMatchesCI(byte[] value, int toffset, byte[] other, int ooffset, int len) | |
| regionMatchesCI_UTF16 | back to summary |
|---|---|
| pack-priv static boolean regionMatchesCI_UTF16(byte[] value, int toffset, byte[] other, int ooffset, int len) | |
| replace | back to summary |
|---|---|
| pack-priv static String replace(byte[] value, char oldChar, char newChar) | |
| replace | back to summary |
|---|---|
| pack-priv static String replace(byte[] value, int valLen, byte[] targ, int targLen, byte[] repl, int replLen) | |
| strip | back to summary |
|---|---|
| pack-priv static String strip(byte[] value) | |
| stripLeading | back to summary |
|---|---|
| pack-priv static String stripLeading(byte[] value) | |
| stripTrailing | back to summary |
|---|---|
| pack-priv static String stripTrailing(byte[] value) | |
| toBytes | back to summary |
|---|---|
| pack-priv static byte[] toBytes(char c) | |
| toChars | back to summary |
|---|---|
| pack-priv static char[] toChars(byte[] value) | |
| toLowerCase | back to summary |
|---|---|
| pack-priv static String toLowerCase(String str, byte[] value, Locale locale) | |
| toLowerCaseEx | back to summary |
|---|---|
| private static String toLowerCaseEx(String str, byte[] value, int first, Locale locale, boolean localeDependent) | |
| toUpperCase | back to summary |
|---|---|
| pack-priv static String toUpperCase(String str, byte[] value, Locale locale) | |
| toUpperCaseEx | back to summary |
|---|---|
| private static String toUpperCaseEx(String str, byte[] value, int first, Locale locale, boolean localeDependent) | |
| trim | back to summary |
|---|---|
| pack-priv static String trim(byte[] value) | |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final int | |
| private final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | characteristics()
Implements java. Returns a set of characteristics of this Spliterator and its elements. |
| public long | estimateSize()
Implements java. Returns an estimate of the number of elements that would be
encountered by a |
| public void | forEachRemaining(IntConsumer action)
Overrides default java. Performs the given action for each remaining element, sequentially in the current thread, until all elements have been processed or the action throws an exception. |
| public boolean | tryAdvance(IntConsumer action)
Implements java. If a remaining element exists, performs the given action on it,
returning |
| public Spliterator. | trySplit()
Implements java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. |
| array | back to summary |
|---|---|
| private final byte[] array | |
| cs | back to summary |
|---|---|
| private final int cs | |
| fence | back to summary |
|---|---|
| private final int fence | |
| index | back to summary |
|---|---|
| private int index | |
| CharsSpliterator | back to summary |
|---|---|
| pack-priv CharsSpliterator(byte[] array, int acs) | |
| CharsSpliterator | back to summary |
|---|---|
| pack-priv CharsSpliterator(byte[] array, int origin, int fence, int acs) | |
| characteristics | back to summary |
|---|---|
| public int characteristics() Implements java. Doc from java. Returns a set of characteristics of this Spliterator and its
elements. The result is represented as ORed values from If a Spliterator reports an inconsistent set of characteristics (either those returned from a single invocation or across multiple invocations), no guarantees can be made about any computation using this Spliterator.
| |
| estimateSize | back to summary |
|---|---|
| public long estimateSize() Implements java. Doc from java. Returns an estimate of the number of elements that would be
encountered by a If this Spliterator is
| |
| forEachRemaining | back to summary |
|---|---|
| public void forEachRemaining(IntConsumer action) Overrides default java. Doc from java. Performs the given action for each remaining element, sequentially in
the current thread, until all elements have been processed or the
action throws an exception. If this Spliterator is Subsequent behavior of a spliterator is unspecified if the action throws an exception.
| |
| tryAdvance | back to summary |
|---|---|
| public boolean tryAdvance(IntConsumer action) Implements java. Doc from java. If a remaining element exists, performs the given action on it,
returning Subsequent behavior of a spliterator is unspecified if the action throws an exception.
| |
| trySplit | back to summary |
|---|---|
| public Spliterator. Implements java. Doc from java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. If this Spliterator is Unless this Spliterator covers an infinite number of elements,
repeated calls to
This method may return
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private int | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | characteristics()
Implements java. Returns a set of characteristics of this Spliterator and its elements. |
| public long | estimateSize()
Implements java. Returns an estimate of the number of elements that would be
encountered by a |
| public void | forEachRemaining(Consumer<? super String> action)
Overrides default java. Performs the given action for each remaining element, sequentially in the current thread, until all elements have been processed or the action throws an exception. |
| private int | |
| private String | |
| private int | |
| pack-priv static StringLatin1. | |
| public boolean | tryAdvance(Consumer<? super String> action)
Implements java. If a remaining element exists: performs the given action on it,
returning |
| public Spliterator | trySplit()
Implements java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. |
| fence | back to summary |
|---|---|
| private final int fence | |
| index | back to summary |
|---|---|
| private int index | |
| value | back to summary |
|---|---|
| private byte[] value | |
| LinesSpliterator | back to summary |
|---|---|
| private LinesSpliterator(byte[] value, int start, int length) | |
| characteristics | back to summary |
|---|---|
| public int characteristics() Implements java. Doc from java. Returns a set of characteristics of this Spliterator and its
elements. The result is represented as ORed values from If a Spliterator reports an inconsistent set of characteristics (either those returned from a single invocation or across multiple invocations), no guarantees can be made about any computation using this Spliterator.
| |
| estimateSize | back to summary |
|---|---|
| public long estimateSize() Implements java. Doc from java. Returns an estimate of the number of elements that would be
encountered by a If this Spliterator is
| |
| forEachRemaining | back to summary |
|---|---|
| public void forEachRemaining(Consumer<? super String> action) Overrides default java. Doc from java. Performs the given action for each remaining element, sequentially in
the current thread, until all elements have been processed or the action
throws an exception. If this Spliterator is Subsequent behavior of a spliterator is unspecified if the action throws an exception.
| |
| indexOfLineSeparator | back to summary |
|---|---|
| private int indexOfLineSeparator(int start) | |
| next | back to summary |
|---|---|
| private String next() | |
| skipLineSeparator | back to summary |
|---|---|
| private int skipLineSeparator(int start) | |
| spliterator | back to summary |
|---|---|
| pack-priv static StringLatin1. | |
| tryAdvance | back to summary |
|---|---|
| public boolean tryAdvance(Consumer<? super String> action) Implements java. Doc from java. If a remaining element exists: performs the given action on it,
returning Subsequent behavior of a spliterator is unspecified if the action throws an exception.
| |
| trySplit | back to summary |
|---|---|
| public Spliterator Implements java. Doc from java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. If this Spliterator is Unless this Spliterator covers an infinite number of elements,
repeated calls to
This method may return
| |