public final class Utf8String extends Utf8Array implements CharSequence
Constructor and Description |
---|
Utf8String(AbstractUtf8Array utf8)
This will create a string based on the utf8 sequence.
|
Utf8String(String str)
This will construct a utf8 backing of the given string.
|
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
boolean |
equals(Object o) |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
String |
toString()
Will convert the utf8 sequence to a Java string
|
getByteLength, getByteOffset, getBytes
ascii7BitLowerCase, compareTo, getByte, hashCode, isEmpty, wrap, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
chars, codePoints
private final String s
public Utf8String(String str)
str
- The string that will be utf8 encodedpublic Utf8String(AbstractUtf8Array utf8)
utf8
- The backing arraypublic char charAt(int index)
charAt
in interface CharSequence
public int length()
length
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
public boolean equals(Object o)
equals
in class AbstractUtf8Array
public String toString()
AbstractUtf8Array
toString
in interface CharSequence
toString
in class AbstractUtf8Array
Copyright © 2018. All rights reserved.