close() to avoid leaking sensitive data on the heap.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Utf8.
Byte array backed Utf8 |
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public default boolean | |
| public default int | |
| public default int | |
| public static Utf8 | |
| public static Utf8 | Returns: Utf8 bufferThe content to buffer content)Buffer the contents of a stream into a Utf8 buffer. |
| public static Utf8 | |
| public Utf8 | Returns: Text with all whitespace removedStrip all whitespace characters in the text |
| public Utf8 | subSequence(int
the start index, inclusive start, int the end index, exclusive end)Redeclares java. Returns a |
| public default Utf8 |
| bytes | back to summary |
|---|---|
| public byte[] bytes() | |
| contains | back to summary |
|---|---|
| public default boolean contains(final String text) | |
| indexOf | back to summary |
|---|---|
| public default int indexOf(String text) | |
| indexOf | back to summary |
|---|---|
| public default int indexOf(String text, int offset) | |
| of | back to summary |
|---|---|
| public static Utf8 of(byte[] bytes) Wrap a mutable byte array. Does not claim ownership of the array. Caller is responsible for erasing the byte array
| |
| of | back to summary |
|---|---|
| public static Utf8 of(ReadableByteChannel content) throws IOException Buffer the contents of a stream into a Utf8 buffer. The contents will be erased when the buffer is closed.
| |
| of | back to summary |
|---|---|
| public static Utf8 of(final String text) Wrap an immutable String. | |
| removeWhitespace | back to summary |
|---|---|
| public Utf8 removeWhitespace() Strip all whitespace characters in the text
| |
| subSequence | back to summary |
|---|---|
| public Utf8 subSequence(int start, int end) Redeclares java. Doc from java. Returns a | |
| trim | back to summary |
|---|---|
| public default Utf8 trim() | |
| Modifier and Type | Field and Description |
|---|---|
| private final transient CharBuffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public char | charAt(int
the index of the index)char value to be returnedImplements java. Returns the |
| public void | close()
Implements com. Must erase the contents of the passphrase |
| private CharBuffer | |
| public int | |
| public Utf8 | removeWhitespace()
Implements com. Strip all whitespace characters in the text |
| public Utf8 | subSequence(int
the start index, inclusive beginIndex, int the end index, exclusive endIndex)Implements com. Returns a |
| public String | toString()
Overrides java. Implements java. Returns a string containing the characters in this sequence in the same order as this sequence. |
| text | back to summary |
|---|---|
| private final transient CharBuffer text | |
| Chars | back to summary |
|---|---|
| private Chars(final CharBuffer text) | |
| bytes | back to summary |
|---|---|
| public byte[] bytes() Implements com. | |
| charAt | back to summary |
|---|---|
| public char charAt(int index) Implements java. Doc from java. Returns the If the
| |
| close | back to summary |
|---|---|
| public void close() Implements com. Doc from com. Must erase the contents of the passphrase
| |
| copyOf | back to summary |
|---|---|
| private CharBuffer copyOf(CharBuffer existing) | |
| length | back to summary |
|---|---|
| public int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| removeWhitespace | back to summary |
|---|---|
| public Utf8 removeWhitespace() Implements com. Doc from com. Strip all whitespace characters in the text | |
| subSequence | back to summary |
|---|---|
| public Utf8 subSequence(int beginIndex, int endIndex) Implements com. Doc from java. Returns a | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Doc from java. Returns a string containing the characters in this sequence in the same order as this sequence. The length of the string will be the length of this sequence. | |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public char | charAt(int
the index of the index)char value to be returnedImplements java. Returns the |
| public void | close()
Implements com. Must erase the contents of the passphrase |
| public int | |
| public int | |
| public Utf8 | removeWhitespace()
Implements com. Strip all whitespace characters in the text |
| public Utf8 | subSequence(int
the start index, inclusive start, int the end index, exclusive end)Implements com. Returns a |
| public Utf8 |
| target | back to summary |
|---|---|
| private final String target | |
| Wrapper | back to summary |
|---|---|
| private Wrapper(final String target) | |
| bytes | back to summary |
|---|---|
| public byte[] bytes() Implements com.
| |
| charAt | back to summary |
|---|---|
| public char charAt(int index) Implements java. Doc from java. Returns the If the
| |
| close | back to summary |
|---|---|
| public void close() Implements com. Doc from com. Must erase the contents of the passphrase
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(String text, int offset) Overrides default com.
| |
| length | back to summary |
|---|---|
| public int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| removeWhitespace | back to summary |
|---|---|
| public Utf8 removeWhitespace() Implements com. Doc from com. Strip all whitespace characters in the text | |
| subSequence | back to summary |
|---|---|
| public Utf8 subSequence(int start, int end) Implements com. Doc from java. Returns a | |
| trim | back to summary |
|---|---|
| public Utf8 trim() Overrides default com.
| |