Example usage for Java io.netty.util AsciiString fields, constructors, methods, implement or subclass
The text is from its open source code.
AsciiString | EMPTY_STRING |
int | length Length in bytes for #value that we care about. |
AsciiString(byte[] value, boolean copy) Initialize this byte string based upon a byte array. | |
AsciiString(ByteBuffer value, boolean copy) Initialize an instance based upon the underlying storage from value . | |
AsciiString(char[] value, Charset charset) Create a copy of value into this instance using the encoding type of charset . | |
AsciiString(CharSequence value, Charset charset) Create a copy of value into this instance using the encoding type of charset . | |
AsciiString(byte[] value) Initialize this byte string based upon a byte array. | |
AsciiString(ByteBuffer value) Create a copy of the underlying storage from value . | |
AsciiString(char[] value) Create a copy of value into this instance assuming ASCII encoding. | |
AsciiString(CharSequence value) Create a copy of value into this instance assuming ASCII encoding. | |
AsciiString(byte[] value, int start, int length, boolean copy) Construct a new instance from a byte[] array. | |
AsciiString(ByteBuffer value, int start, int length, boolean copy) Initialize an AsciiString based upon the underlying storage from value . | |
AsciiString(char[] value, Charset charset, int start, int length) Create a copy of value into a this instance using the encoding type of charset . | |
AsciiString(CharSequence value, Charset charset, int start, int length) Create a copy of value into this instance using the encoding type of charset . |
byte[] | array() This gives direct access to the underlying storage array. |
int | arrayOffset() The offset into #array() for which data for this ByteString begins. |
byte | byteAt(int index) |
AsciiString | cached(String string) Returns an AsciiString containing the given string and retains/caches the input string for later use in #toString() . |
char | charAt(int index) |
AsciiString | concat(CharSequence string) Concatenates this string and the specified string. |
boolean | contains(CharSequence cs) Determines if this String contains the sequence of characters in the CharSequence passed. |
boolean | contentEquals(CharSequence a, CharSequence b) Returns true if the content of both CharSequence 's are equals. |
boolean | contentEqualsIgnoreCase(CharSequence a, CharSequence b) Returns true if both CharSequence 's are equals when ignore the case. |
boolean | contentEqualsIgnoreCase(CharSequence string) Compares the specified string to this string ignoring the case of the characters and returns true if they are equal. |
boolean | equals(Object obj) |
int | forEachByte(ByteProcessor visitor) Iterates over the readable bytes of this buffer with the specified processor in ascending order. |
int | hashCode(CharSequence value) Returns the case-insensitive hash code of the specified string. |
int | indexOf(final CharSequence cs, final char searchChar, int start) Finds the first index in the CharSequence that matches the specified character. |
boolean | isEmpty() Determine if this instance has 0 length. |
boolean | isEntireArrayUsed() Determine if the storage represented by #array() is entirely used. |
AsciiString | of(CharSequence string) Returns an AsciiString containing the given character sequence. |
boolean | startsWith(CharSequence prefix) Compares the specified string to this string to determine if the specified string is a prefix. |
AsciiString | subSequence(int start, int end, boolean copy) Either copy or share a subset of underlying sub-sequence of bytes. |
byte[] | toByteArray() Converts this string to a byte array. |
AsciiString | toLowerCase() Converts the characters in this string to lowercase, using the default Locale. |
String | toString() Translates the entire byte string to a String . |
AsciiString | trim() Duplicates this string removing white space characters from the beginning and end of the string, without copying. |
CharSequence | trim(CharSequence c) Copies this string removing white space characters from the beginning and end of the string, and tries not to copy if possible. |