Java io.netty.util AsciiString fields, constructors, methods, implement or subclass

Example usage for Java io.netty.util AsciiString fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.netty.util AsciiString.

The text is from its open source code.

Field

AsciiStringEMPTY_STRING
intlength
Length in bytes for #value that we care about.

Constructor

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 .

Method

byte[]array()
This gives direct access to the underlying storage array.
intarrayOffset()
The offset into #array() for which data for this ByteString begins.
bytebyteAt(int index)
AsciiStringcached(String string)
Returns an AsciiString containing the given string and retains/caches the input string for later use in #toString() .
charcharAt(int index)
AsciiStringconcat(CharSequence string)
Concatenates this string and the specified string.
booleancontains(CharSequence cs)
Determines if this String contains the sequence of characters in the CharSequence passed.
booleancontentEquals(CharSequence a, CharSequence b)
Returns true if the content of both CharSequence 's are equals.
booleancontentEqualsIgnoreCase(CharSequence a, CharSequence b)
Returns true if both CharSequence 's are equals when ignore the case.
booleancontentEqualsIgnoreCase(CharSequence string)
Compares the specified string to this string ignoring the case of the characters and returns true if they are equal.
booleanequals(Object obj)
intforEachByte(ByteProcessor visitor)
Iterates over the readable bytes of this buffer with the specified processor in ascending order.
inthashCode(CharSequence value)
Returns the case-insensitive hash code of the specified string.
intindexOf(final CharSequence cs, final char searchChar, int start)

Finds the first index in the CharSequence that matches the specified character.

booleanisEmpty()
Determine if this instance has 0 length.
booleanisEntireArrayUsed()
Determine if the storage represented by #array() is entirely used.
AsciiStringof(CharSequence string)
Returns an AsciiString containing the given character sequence.
booleanstartsWith(CharSequence prefix)
Compares the specified string to this string to determine if the specified string is a prefix.
AsciiStringsubSequence(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.
AsciiStringtoLowerCase()
Converts the characters in this string to lowercase, using the default Locale.
StringtoString()
Translates the entire byte string to a String .
AsciiStringtrim()
Duplicates this string removing white space characters from the beginning and end of the string, without copying.
CharSequencetrim(CharSequence c)
Copies this string removing white space characters from the beginning and end of the string, and tries not to copy if possible.