| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| public static final HttpString | EMPTY
Empty HttpString instance. |
| private final transient int | |
| private static final Field | |
| private final int | orderInt
And integer that is only set for well known header to make comparison fast |
| private static final long | |
| private transient String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HttpString(final byte[]
the byte array to copy bytes, int the offset into the array to start copying offset, int the number of bytes to copy length)Construct a new instance. |
| public | HttpString(final ByteBuffer
the buffer to read buffer)Construct a new instance by reading the remaining bytes from a buffer. |
| public | |
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public byte | |
| private static boolean | |
| private static boolean | |
| private static int | |
| private void | |
| public int | Returns: -1, 0, or 1the other string other)Implements java. Compare this string to another in a case-insensitive manner. |
| 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 boolean | Returns: true if they are equal, false otherwisethe other object other)Overrides java. Determine if this |
| public boolean | Returns: true if they are equal, false otherwisethe other object other)Determine if this |
| public boolean | |
| public int | |
| pack-priv static int | |
| private static int | |
| public int | |
| private void | |
| private static byte[] | |
| private static byte[] | |
| public String | Returns: the stringOverrides java. Get the |
| public static HttpString | Returns: the HTTP string, ornull if the string is not in a compatible encodingthe string to try string)Attempt to convert a |
| public void |
| bytes | back to summary |
|---|---|
| private final byte[] bytes | |
| EMPTY | back to summary |
|---|---|
| public static final HttpString EMPTY Empty HttpString instance. | |
| hashCode | back to summary |
|---|---|
| private final transient int hashCode | |
| hashCodeField | back to summary |
|---|---|
| private static final Field hashCodeField | |
| orderInt | back to summary |
|---|---|
| private final int orderInt And integer that is only set for well known header to make comparison fast | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| string | back to summary |
|---|---|
| private transient String string | |
| HttpString | back to summary |
|---|---|
| public HttpString(final byte[] bytes) Construct a new instance.
| |
| HttpString | back to summary |
|---|---|
| public HttpString(final byte[] bytes, int offset, int length) Construct a new instance.
| |
| HttpString | back to summary |
|---|---|
| public HttpString(final ByteBuffer buffer) Construct a new instance by reading the remaining bytes from a buffer.
| |
| HttpString | back to summary |
|---|---|
| public HttpString(final String string) Construct a new instance from a
| |
| HttpString | back to summary |
|---|---|
| pack-priv HttpString(final String string, int orderInt) | |
| HttpString | back to summary |
|---|---|
| private HttpString(final byte[] bytes, final String string) | |
| appendTo | back to summary |
|---|---|
| public void appendTo(ByteBuffer buffer) Append to a byte buffer.
| |
| byteAt | back to summary |
|---|---|
| public byte byteAt(int idx) Get the byte at an index.
| |
| bytesAreEqual | back to summary |
|---|---|
| private static boolean bytesAreEqual(final byte[] a, final byte[] b) | |
| bytesAreEquivalent | back to summary |
|---|---|
| private static boolean bytesAreEquivalent(final byte[] a, final byte[] b) | |
| calcHashCode | back to summary |
|---|---|
| private static int calcHashCode(final byte[] bytes) | |
| checkForNewlines | back to summary |
|---|---|
| private void checkForNewlines() | |
| compareTo | back to summary |
|---|---|
| public int compareTo(final HttpString other) Implements java. Compare this string to another in a case-insensitive manner.
| |
| copyTo | back to summary |
|---|---|
| public void copyTo(int srcOffs, byte[] dst, int offs, int len) Copy
| |
| copyTo | back to summary |
|---|---|
| public void copyTo(byte[] dst, int offs, int len) Copy
| |
| copyTo | back to summary |
|---|---|
| public void copyTo(byte[] dst, int offs) Copy all the bytes from this string to the given array at the given offset.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object other) Overrides java. Determine if this | |
| equals | back to summary |
|---|---|
| public boolean equals(final HttpString other) Determine if this
| |
| equalToString | back to summary |
|---|---|
| public boolean equalToString(String headerName) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Get the hash code.
| |
| hashCodeOf | back to summary |
|---|---|
| pack-priv static int hashCodeOf(final String headerName) | |
| higher | back to summary |
|---|---|
| private static int higher(byte b) | |
| length | back to summary |
|---|---|
| public int length() Get the string length.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException | |
| take | back to summary |
|---|---|
| private static byte[] take(final ByteBuffer buffer) | |
| toByteArray | back to summary |
|---|---|
| private static byte[] toByteArray(final String string) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Get the | |
| tryFromString | back to summary |
|---|---|
| public static HttpString tryFromString(String string) Attempt to convert a
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(OutputStream output) throws IOException Append to an output stream.
| |