public final class AsciiBytes
extends java.lang.Object
| Constructor | Description |
|---|---|
AsciiBytes(byte[] bytes) |
Create a new
AsciiBytes from the specified bytes. |
AsciiBytes(byte[] bytes,
int offset,
int length) |
Create a new
AsciiBytes from the specified bytes. |
AsciiBytes(java.lang.String string) |
Create a new
AsciiBytes from the specified String. |
| Modifier and Type | Method | Description |
|---|---|---|
AsciiBytes |
append(byte[] bytes) |
|
AsciiBytes |
append(AsciiBytes asciiBytes) |
|
AsciiBytes |
append(java.lang.String string) |
|
boolean |
endsWith(AsciiBytes postfix) |
|
boolean |
equals(java.lang.Object obj) |
|
int |
hashCode() |
|
int |
length() |
|
boolean |
startsWith(AsciiBytes prefix) |
|
AsciiBytes |
substring(int beginIndex) |
|
AsciiBytes |
substring(int beginIndex,
int endIndex) |
|
java.lang.String |
toString() |
public AsciiBytes(java.lang.String string)
AsciiBytes from the specified String.string - the source stringpublic AsciiBytes(byte[] bytes)
AsciiBytes from the specified bytes. NOTE: underlying bytes
are not expected to change.bytes - the source bytespublic AsciiBytes(byte[] bytes,
int offset,
int length)
AsciiBytes from the specified bytes. NOTE: underlying bytes
are not expected to change.bytes - the source bytesoffset - the offsetlength - the lengthpublic int length()
public boolean startsWith(AsciiBytes prefix)
public boolean endsWith(AsciiBytes postfix)
public AsciiBytes substring(int beginIndex)
public AsciiBytes substring(int beginIndex, int endIndex)
public AsciiBytes append(java.lang.String string)
public AsciiBytes append(AsciiBytes asciiBytes)
public AsciiBytes append(byte[] bytes)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018. All rights reserved.