Buffer chunk representation. Helps HTTP module to avoid redundant String creation.
| Modifier and Type | Field and Description |
|---|---|
| private Buffer | |
| pack-priv String | |
| pack-priv Charset | |
| private static final Charset | DEFAULT_CHARSET
Default encoding used to convert to strings. |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public int | |
| public int | compareIgnoreCase(int start, int end, String compareTo)
Returns: -1, 0 or +1 if inferior, equal, or superior to the String. |
| public void | |
| public boolean | equals(final Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public boolean | |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe b)byte[] to compareCompares the message Buffer to the specified byte array. |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe b, int byte[] to comparethe offset in the array offset, final int number of bytes to check len)Compares the message Buffer to the specified byte array. |
| public static boolean | |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe b, int char[] to comparethe offset in the array offset, final int number of chars to check len)Compares the message Buffer to the specified char array. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe b, int char[] to comparethe offset in the array offset, final int number of chars to check len)Compares the message Buffer to the specified char array ignoring case considerations. |
| public boolean | Returns: true if the comparison succeeded, false otherwisethe b)byte[] to compareCompares the buffer chunk to the specified byte array representing lower-case ASCII characters. |
| public static boolean | Returns: true if the comparison succeeded, false otherwisethe buffer, final int byte[] to comparebuffer start start, final int buffer end end, final byte[] byte[] to compare against cmpTo)Compares the buffer chunk to the specified byte array representing lower-case ASCII characters. |
| public int | Returns: the starting index of the specified byte sequence within thisBufferbyte sequence to search for. b)Returns the starting index of the specified byte sequence within this |
| public Buffer | |
| public int | |
| public final int | |
| public int | |
| public int | |
| public int | |
| public final int | |
| public final int | indexOf(final String s, final int fromIndex)
Implements org.
|
| public static int | |
| public static int | |
| public final boolean | |
| protected void | |
| public final void | |
| protected final void | |
| protected final void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| pack-priv boolean | |
| public static boolean | |
| public boolean | |
| public String | |
| public String | |
| public String | |
| public void |
| buffer | back to summary |
|---|---|
| private Buffer buffer | |
| cachedString | back to summary |
|---|---|
| pack-priv String cachedString | |
| cachedStringCharset | back to summary |
|---|---|
| pack-priv Charset cachedStringCharset | |
| DEFAULT_CHARSET | back to summary |
|---|---|
| private static final Charset DEFAULT_CHARSET Default encoding used to convert to strings. It should be UTF8, as most standards seem to converge, but the servlet API requires 8859_1, and this object is used mostly for servlets. | |
| end | back to summary |
|---|---|
| private int end | |
| limit | back to summary |
|---|---|
| private int limit | |
| start | back to summary |
|---|---|
| private int start | |
| BufferChunk | back to summary |
|---|---|
| public BufferChunk() | |
| allocate | back to summary |
|---|---|
| public void allocate(final int size) | |
| append | back to summary |
|---|---|
| public void append(final BufferChunk bc) | |
| compare | back to summary |
|---|---|
public int compare(int start, int end, String compareTo)
| |
| compareIgnoreCase | back to summary |
|---|---|
public int compareIgnoreCase(int start, int end, String compareTo)
| |
| delete | back to summary |
|---|---|
| public void delete(final int start, final int end) Implements org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| equals | back to summary |
|---|---|
| public boolean equals(CharSequence s) | |
| equals | back to summary |
|---|---|
| public boolean equals(final byte[] b) Compares the message Buffer to the specified byte array.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final byte[] b, int offset, final int len) Compares the message Buffer to the specified byte array.
| |
| equals | back to summary |
|---|---|
| public static boolean equals(final byte[] c, final int cOff, final int cLen, final Buffer t, final int tOff, final int tLen) | |
| equals | back to summary |
|---|---|
| public boolean equals(final char[] b, int offset, final int len) Compares the message Buffer to the specified char array.
| |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(final Object o) | |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(CharSequence s) | |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(final byte[] b) | |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(final byte[] b, final int offset, final int len) | |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(final char[] b, int offset, final int len) Compares the message Buffer to the specified char array ignoring case considerations.
| |
| equalsIgnoreCaseLowerCase | back to summary |
|---|---|
| public boolean equalsIgnoreCaseLowerCase(final byte[] b) Compares the buffer chunk to the specified byte array representing lower-case ASCII characters.
| |
| equalsIgnoreCaseLowerCase | back to summary |
|---|---|
| public static boolean equalsIgnoreCaseLowerCase(final Buffer buffer, final int start, final int end, final byte[] cmpTo) Compares the buffer chunk to the specified byte array representing lower-case ASCII characters.
| |
| findBytesAscii | back to summary |
|---|---|
| public int findBytesAscii(byte[] b) Returns the starting index of the specified byte sequence within this
| |
| getBuffer | back to summary |
|---|---|
| public Buffer getBuffer() | |
| getEnd | back to summary |
|---|---|
| public int getEnd() Implements org.
| |
| getLength | back to summary |
|---|---|
| public final int getLength() Implements org.
| |
| getStart | back to summary |
|---|---|
| public int getStart() Implements org.
| |
| hash | back to summary |
|---|---|
| public int hash() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| indexOf | back to summary |
|---|---|
| public final int indexOf(final char c, final int fromIndex) Implements org.
| |
| indexOf | back to summary |
|---|---|
| public final int indexOf(final String s, final int fromIndex) Implements org.
| |
| indexOf | back to summary |
|---|---|
| public static int indexOf(final Buffer buffer, int off, final int end, final char qq) | |
| indexOf | back to summary |
|---|---|
| public static int indexOf(final Buffer buffer, int off, final int end, final CharSequence s) | |
| isNull | back to summary |
|---|---|
| public final boolean isNull() | |
| notifyDirectUpdate | back to summary |
|---|---|
| protected void notifyDirectUpdate() Notify the Chunk that its content is going to be changed directly | |
| recycle | back to summary |
|---|---|
| public final void recycle() | |
| reset | back to summary |
|---|---|
| protected final void reset() | |
| resetStringCache | back to summary |
|---|---|
| protected final void resetStringCache() | |
| setBuffer | back to summary |
|---|---|
| public void setBuffer(Buffer buffer) | |
| setBufferChunk | back to summary |
|---|---|
| public void setBufferChunk(final Buffer buffer, final int start, final int end) | |
| setBufferChunk | back to summary |
|---|---|
| public void setBufferChunk(final Buffer buffer, final int start, final int end, final int limit) | |
| setEnd | back to summary |
|---|---|
| public void setEnd(int end) Implements org.
| |
| setStart | back to summary |
|---|---|
| public void setStart(int start) Implements org.
| |
| startsWith | back to summary |
|---|---|
| pack-priv boolean startsWith(String s, int pos) | |
| startsWith | back to summary |
|---|---|
| public static boolean startsWith(final Buffer buffer, final int start, final int end, final byte[] cmpTo) | |
| startsWithIgnoreCase | back to summary |
|---|---|
| public boolean startsWithIgnoreCase(String s, int pos) | |
| 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() | |