Buffer chunk representation. Helps HTTP module to avoid redundant String creation.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final BufferChunk | |
| pack-priv final ByteChunk | |
| pack-priv final CharChunk | |
| pack-priv String | |
| pack-priv DataChunk. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | DataChunk(final ByteChunk byteChunk, final BufferChunk bufferChunk, final CharChunk charChunk, final String stringValue)
|
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public void | |
| public boolean | Returns: true if the passed object represents another DataChunk and its content is equal to this DataChunk's content.the Object to compare object)Overrides java. Compares this DataChunk and the passed object. |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe BufferChunk to compare bufferChunkToCheck)Compares the message data to the specified BufferChunk. |
| public boolean | |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe byte[] to compare bytes)Compares the message data to the specified byte[]. |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe byte[] to compare bytes, final int start, final int len)Compares the message data to the specified byte[]. |
| public boolean | Returns: true if the passed object represents another DataChunk and its content is equal to this DataChunk's content ignoring case considerations.the Object to compare object)Compares this DataChunk and the passed object ignoring case considerations. |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe String to compare s)Compares the message bytes to the specified String object ignoring case considerations. |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe ByteChunk to compare byteChunkToCheck)Compares the message data to the specified ByteChunk ignoring case considerations. |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe BufferChunk to compare bufferChunkToCheck)Compares the message data to the specified BufferChunk ignoring case considerations. |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe CharChunk to compare charChunkToCheck)Compares the message data to the specified CharChunk ignoring case considerations. |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe byte[] to compare bytes)Compares the message data to the specified byte[] ignoring case considerations. |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe byte[] to compare bytes, final int start, final int len)Compares the message data to the specified byte[] ignoring case considerations. |
| public final boolean | Returns: true if the comparison succeeded, false otherwisethe b)byte[] to compareCompares the data chunk to the specified byte array representing lower-case ASCII characters. |
| private static boolean | Returns: true if the comparison succeeded, false otherwisethe b)byte[] to compareCompares the String to the specified byte array representing lower-case ASCII characters. |
| public BufferChunk | |
| public ByteChunk | |
| public CharChunk | |
| public int | Returns: the DataChunk end position.Implements org. Returns the DataChunk end position. |
| public int | Returns: the DataChunk length.Implements org. Returns the DataChunk length. |
| public int | Returns: the DataChunk start position.Implements org. Returns the DataChunk start position. |
| public DataChunk. | |
| public int | Returns: DataChunk hash code.Overrides java. Returns DataChunk hash code. |
| public final int | indexOf(final char
the character c, final int The start position fromIndex)Implements org. Returns true if the message bytes starts with the specified string. |
| public final int | indexOf(final String
the string s, final int The start position fromIndex)Implements org. Returns true if the message bytes starts with the specified string. |
| public final boolean | |
| public static DataChunk | |
| public static DataChunk | newInstance(final ByteChunk byteChunk, final BufferChunk bufferChunk, final CharChunk charChunk, final String stringValue)
|
| public void | |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private void | |
| public void | |
| public void | |
| private void | |
| public void | |
| private void | |
| public void | setEnd(int
the DataChunk end position. end)Implements org. Sets the DataChunk end position. |
| public void | setStart(int
the DataChunk start position. start)Implements org. Sets the DataChunk start position. |
| public void | |
| private void | |
| public final boolean | Returns: true if the DataChunk starts with the specified string.the string s, final int The start position pos)Returns |
| public final boolean | Returns: true if the DataChunk starts with the specified string.the string s, final int The start position pos)Returns |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | |
| public DataChunk | |
| public String | |
| public String | |
| public String | |
| public void |
| bufferChunk | back to summary |
|---|---|
| pack-priv final BufferChunk bufferChunk | |
| byteChunk | back to summary |
|---|---|
| pack-priv final ByteChunk byteChunk | |
| charChunk | back to summary |
|---|---|
| pack-priv final CharChunk charChunk | |
| stringValue | back to summary |
|---|---|
| pack-priv String stringValue | |
| type | back to summary |
|---|---|
| pack-priv DataChunk. | |
| DataChunk | back to summary |
|---|---|
| protected DataChunk() | |
| DataChunk | back to summary |
|---|---|
| protected DataChunk(final ByteChunk byteChunk, final BufferChunk bufferChunk, final CharChunk charChunk, final String stringValue) | |
| delete | back to summary |
|---|---|
| public final void delete(final int from, final int to) Implements org.
| |
| duplicate | back to summary |
|---|---|
| public void duplicate(final DataChunk src) Copy the src into this DataChunk, allocating more space if needed | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object object) Overrides java. Compares this DataChunk and the passed object. | |
| equals | back to summary |
|---|---|
| public boolean equals(final String s) Compares the message bytes to the specified String object.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final ByteChunk byteChunkToCheck) Compares the message data to the specified ByteChunk.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final BufferChunk bufferChunkToCheck) Compares the message data to the specified BufferChunk.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final CharChunk charChunkToCheck) Compares the message data to the specified CharChunk.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final byte[] bytes) Compares the message data to the specified byte[].
| |
| equals | back to summary |
|---|---|
| public boolean equals(final byte[] bytes, final int start, final int len) Compares the message data to the specified byte[].
| |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(final Object object) Compares this DataChunk and the passed object ignoring case considerations.
| |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(final String s) Compares the message bytes to the specified String object ignoring case considerations.
| |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(final ByteChunk byteChunkToCheck) Compares the message data to the specified ByteChunk ignoring case considerations.
| |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(final BufferChunk bufferChunkToCheck) Compares the message data to the specified BufferChunk ignoring case considerations.
| |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(final CharChunk charChunkToCheck) Compares the message data to the specified CharChunk ignoring case considerations.
| |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(final byte[] bytes) Compares the message data to the specified byte[] ignoring case considerations.
| |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(final byte[] bytes, final int start, final int len) Compares the message data to the specified byte[] ignoring case considerations.
| |
| equalsIgnoreCaseLowerCase | back to summary |
|---|---|
| public final boolean equalsIgnoreCaseLowerCase(final byte[] b) Compares the data chunk to the specified byte array representing lower-case ASCII characters.
| |
| equalsIgnoreCaseLowerCase | back to summary |
|---|---|
| private static boolean equalsIgnoreCaseLowerCase(final String s, final byte[] b) Compares the String to the specified byte array representing lower-case ASCII characters.
| |
| getBufferChunk | back to summary |
|---|---|
| public BufferChunk getBufferChunk() | |
| getByteChunk | back to summary |
|---|---|
| public ByteChunk getByteChunk() | |
| getCharChunk | back to summary |
|---|---|
| public CharChunk getCharChunk() | |
| getEnd | back to summary |
|---|---|
| public int getEnd() Implements org. Returns the DataChunk end position.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Implements org. Returns the DataChunk length.
| |
| getStart | back to summary |
|---|---|
| public int getStart() Implements org. Returns the DataChunk start position.
| |
| getType | back to summary |
|---|---|
| public DataChunk. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns DataChunk hash code.
| |
| indexOf | back to summary |
|---|---|
| public final int indexOf(final char c, final int fromIndex) Implements org. Returns true if the message bytes starts with the specified string.
| |
| indexOf | back to summary |
|---|---|
| public final int indexOf(final String s, final int fromIndex) Implements org. Returns true if the message bytes starts with the specified string. | |
| isNull | back to summary |
|---|---|
| public final boolean isNull() | |
| newInstance | back to summary |
|---|---|
| public static DataChunk newInstance() | |
| newInstance | back to summary |
|---|---|
| public static DataChunk newInstance(final ByteChunk byteChunk, final BufferChunk bufferChunk, final CharChunk charChunk, final String stringValue) | |
| notifyDirectUpdate | back to summary |
|---|---|
| public void notifyDirectUpdate() Notify the Chunk that its content is going to be changed directly | |
| recycle | back to summary |
|---|---|
| public void recycle() | |
| reset | back to summary |
|---|---|
| protected void reset() | |
| resetBuffer | back to summary |
|---|---|
| protected void resetBuffer() | |
| resetByteChunk | back to summary |
|---|---|
| protected void resetByteChunk() | |
| resetCharChunk | back to summary |
|---|---|
| protected void resetCharChunk() | |
| resetString | back to summary |
|---|---|
| protected void resetString() | |
| set | back to summary |
|---|---|
| public void set(final DataChunk value) | |
| set | back to summary |
|---|---|
| public void set(final DataChunk value, final int start, final int end) | |
| setBuffer | back to summary |
|---|---|
| public void setBuffer(final Buffer buffer, final int position, final int limit) | |
| setBuffer | back to summary |
|---|---|
| public void setBuffer(final Buffer buffer) | |
| setBufferInternal | back to summary |
|---|---|
| private void setBufferInternal(final Buffer buffer, final int position, final int limit) | |
| setBytes | back to summary |
|---|---|
| public void setBytes(final byte[] bytes) | |
| setBytes | back to summary |
|---|---|
| public void setBytes(final byte[] bytes, final int position, final int limit) | |
| setBytesInternal | back to summary |
|---|---|
| private void setBytesInternal(final byte[] array, final int position, final int limit) | |
| setChars | back to summary |
|---|---|
| public void setChars(final char[] chars, final int position, final int limit) | |
| setCharsInternal | back to summary |
|---|---|
| private void setCharsInternal(final char[] chars, final int position, final int limit) | |
| setEnd | back to summary |
|---|---|
| public void setEnd(int end) Implements org. Sets the DataChunk end position.
| |
| setStart | back to summary |
|---|---|
| public void setStart(int start) Implements org. Sets the DataChunk start position.
| |
| setString | back to summary |
|---|---|
| public void setString(String string) | |
| setStringInternal | back to summary |
|---|---|
| private void setStringInternal(String string) | |
| startsWith | back to summary |
|---|---|
| public final boolean startsWith(final String s, final int pos) Returns
| |
| startsWithIgnoreCase | back to summary |
|---|---|
| public final boolean startsWithIgnoreCase(final String s, final int pos) Returns
| |
| switchToBufferChunk | back to summary |
|---|---|
| private void switchToBufferChunk() | |
| switchToByteChunk | back to summary |
|---|---|
| private void switchToByteChunk() | |
| switchToCharChunk | back to summary |
|---|---|
| private void switchToCharChunk() | |
| switchToString | back to summary |
|---|---|
| private void switchToString() | |
| toChars | back to summary |
|---|---|
| public void toChars(final Charset charset) throws CharConversionException | |
| toImmutable | back to summary |
|---|---|
| public DataChunk toImmutable() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| toString | back to summary |
|---|---|
| public String toString(Charset charset) | |
| toString | back to summary |
|---|---|
| public String toString(final int start, final int end) Implements org.
| |
| trimLeft | back to summary |
|---|---|
| public void trimLeft() | |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| public void | setBuffer(Buffer buffer, int start, int end)
Overrides org.
|
| public void | setChars(char[] chars, int position, int limit)
Overrides org.
|
| public void | |
| public DataChunk |
| Immutable | back to summary |
|---|---|
| public Immutable(DataChunk original) | |
| recycle | back to summary |
|---|---|
| public void recycle() Overrides org.
| |
| reset | back to summary |
|---|---|
| protected void reset() Overrides org.
| |
| resetBuffer | back to summary |
|---|---|
| protected void resetBuffer() Overrides org.
| |
| resetCharChunk | back to summary |
|---|---|
| protected void resetCharChunk() Overrides org.
| |
| resetString | back to summary |
|---|---|
| protected void resetString() Overrides org.
| |
| set | back to summary |
|---|---|
| public void set(DataChunk value) Overrides org.
| |
| setBuffer | back to summary |
|---|---|
| public void setBuffer(Buffer buffer, int start, int end) Overrides org.
| |
| setChars | back to summary |
|---|---|
| public void setChars(char[] chars, int position, int limit) Overrides org.
| |
| setString | back to summary |
|---|---|
| public void setString(String string) Overrides org.
| |
| toImmutable | back to summary |
|---|---|
| public DataChunk toImmutable() Overrides org.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final DataChunk. | |
| public static final DataChunk. | |
| public static final DataChunk. | |
| public static final DataChunk. | |
| public static final DataChunk. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DataChunk. | |
| public static DataChunk. |
| Buffer | back to summary |
|---|---|
| public static final DataChunk. | |
| Bytes | back to summary |
|---|---|
| public static final DataChunk. | |
| Chars | back to summary |
|---|---|
| public static final DataChunk. | |
| None | back to summary |
|---|---|
| public static final DataChunk. | |
| String | back to summary |
|---|---|
| public static final DataChunk. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static DataChunk. | |
| values | back to summary |
|---|---|
| public static DataChunk. | |