Option values and in an OptionMap. Some operations can treat this byte string
as an ASCII- or ISO-8858-1-encoded character string.
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private transient int | |
| private transient int | |
| private final int | |
| private final int | |
| private static final long | |
| private static final ByteString |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| public byte | |
| private static int | |
| private static int | |
| public char | charAt(final int
the index of the index)char value to be returnedImplements java. Returns the |
| public int | Returns: -1, 0, or 1the other string other)Implements java. Compare this string to another in a case-sensitive manner. |
| public int | Returns: -1, 0, or 1the other string other)Compare this string to another in a case-insensitive manner. |
| public ByteString | |
| public ByteString | |
| public ByteString | |
| public ByteString | |
| public ByteString | |
| public ByteString | |
| public static ByteString | |
| public static ByteString | |
| public boolean | Returns: true if this string contains other, false otherwisethe string to test other)Determine whether this string contains another string (case-sensitive). |
| public boolean | |
| public boolean | Returns: true if this string contains other, false otherwisethe string to test other)Determine whether this string contains another string (case-insensitive). |
| public boolean | Returns: true if this string contains other, false otherwisethe string to test other)Determine whether this string contains another string (case-sensitive). |
| public static ByteString | Returns: the new byte stringthe byte array b, int the offset into the array offs, int the number of bytes to copy len)Create a byte string from the given array segment. |
| public void | copyTo(int
the source offset srcOffs, byte[] the destination dst, int the destination offset offs, int the number of bytes to copy len)Copy |
| public void | copyTo(byte[]
the destination dst, int the destination offset offs, int the number of bytes len)Copy |
| public void | copyTo(byte[]
the destination dst, int the destination offset offs)Copy all the bytes from this string to the given array at the given offset. |
| public void | copyTo(byte[]
the destination dst)Copy all the bytes from this string to the given array at the given offset. |
| private static int | |
| private static int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| private static boolean | |
| public boolean | Returns: true if they are equalthe other object obj)Overrides java. Determine if this ByteString equals another ByteString. |
| public boolean | Returns: true if they are equalthe other object other)Determine if this ByteString equals another ByteString. |
| private static boolean | |
| private static boolean | |
| public boolean | Returns: true if they are equalthe other object other)Determine if this ByteString equals another ByteString, ignoring case (ASCII). |
| private static boolean | |
| public boolean | Returns: true if the given string is equal (case-sensitively) to this instance, false otherwisethe string to check str)Determine whether this |
| public boolean | Returns: true if the given string is equal (case-insensitively) to this instance, false otherwisethe string to check str)Determine whether this |
| public static ByteString | |
| public static ByteString | |
| public static ByteString | |
| public static ByteString | |
| public static ByteString | |
| public static ByteString | Returns: the byte stringthe buffer buffer)Get a byte string from all remaining bytes of a ByteBuffer. |
| public static ByteString | Returns: the byte stringthe buffer buffer, int the number of bytes to get length)Get a byte string from a ByteBuffer. |
| public byte[] | |
| public void | getBytes(byte[]
the destination array dest)
Deprecated
Replaced by
copyTo(byte[]).
Copy the bytes of this ByteString into the destination array. |
| public void | getBytes(byte[]
the destination array dest, int the offset into the destination array offs)
Deprecated
Replaced by
copyTo(byte[], int).
Copy the bytes of this ByteString into the destination array. |
| public void | getBytes(byte[]
the destination array dest, int the offset into the destination array offs, int the maximum number of bytes to copy len)
Deprecated
Replaced by
copyTo(byte[], int, int).
Copy the bytes of this ByteString into the destination array. |
| private static byte[] | getStringBytes(final boolean trust, final byte[] dst, final int dstOffs, final String src, final int srcOffs, final int len)
|
| public int | Returns: the hash codeOverrides java. Get the hash code for this ByteString. |
| public int | |
| public int | Returns: the index, or -1 if it was not foundthe character c)Get the index of the given character in this string. |
| public int | Returns: the index, or -1 if it was not foundthe character c, int start)Get the index of the given character in this string. |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | Returns: the index, or -1 if it was not foundthe character c)Get the last index of the given character in this string. |
| public int | Returns: the index, or -1 if it was not foundthe character c, int start)Get the last index of the given character in this string. |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | Returns: the number of bytesImplements java. Get the number of bytes in this byte string. |
| public static ByteString | |
| private void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public ByteString | subSequence(final int
the start index, inclusive start, final int the end index, exclusive end)Implements java. Returns a |
| public ByteString | Returns: the substringthe offset offs)Get the substring of this string starting at the given offset. |
| public ByteString | Returns: the substringthe offset offs, int the substring length len)Get the substring of this string starting at the given offset. |
| public int | Returns: the valuethe index to start at (must be less than or equal to length) start)Get the unsigned |
| public int | |
| public long | Returns: the valuethe index to start at (must be less than or equal to length) start)Get the unsigned |
| public long | |
| public String | |
| public String | Returns: the Latin-1-decoded version of this stringOverrides java. Implements java. Decode this byte string as a Latin-1 string. |
| public String | Returns: the UTF-8-decoded version of this stringDecode this byte string as a UTF-8 string. |
| public int | Returns: the number of bytes appendedthe start offset offs, final ByteBuffer the buffer to append to buffer)Append as many bytes as possible to a byte buffer. |
| private static int | |
| public void |