| Constructor and Description |
|---|
BufferChunk() |
| Modifier and Type | Method and Description |
|---|---|
void |
allocate(int size) |
void |
append(BufferChunk bc) |
int |
compare(int start,
int end,
java.lang.String compareTo) |
int |
compareIgnoreCase(int start,
int end,
java.lang.String compareTo) |
void |
delete(int start,
int end) |
boolean |
equals(java.lang.CharSequence s) |
boolean |
equalsIgnoreCase(byte[] b) |
boolean |
equalsIgnoreCase(java.lang.CharSequence s) |
static boolean |
equalsIgnoreCaseLowerCase(Buffer buffer,
int start,
int end,
byte[] cmpTo)
Compares the buffer chunk to the specified byte array representing
lower-case ASCII characters.
|
boolean |
equalsIgnoreCaseLowerCase(byte[] b)
Compares the buffer chunk to the specified byte array representing
lower-case ASCII characters.
|
int |
findBytesAscii(byte[] b)
Returns the starting index of the specified byte sequence within this
Buffer. |
Buffer |
getBuffer() |
int |
getEnd() |
int |
getLength() |
int |
getStart() |
int |
hash() |
static int |
indexOf(Buffer buffer,
int off,
int end,
char qq) |
static int |
indexOf(Buffer buffer,
int off,
int end,
java.lang.CharSequence s) |
int |
indexOf(char c,
int fromIndex) |
int |
indexOf(java.lang.String s,
int fromIndex) |
boolean |
isNull() |
protected void |
notifyDirectUpdate()
Notify the Chunk that its content is going to be changed directly
|
void |
recycle() |
protected void |
reset() |
protected void |
resetStringCache() |
void |
setBuffer(Buffer buffer) |
void |
setBufferChunk(Buffer buffer,
int start,
int end) |
void |
setBufferChunk(Buffer buffer,
int start,
int end,
int limit) |
void |
setEnd(int end) |
void |
setStart(int start) |
static boolean |
startsWith(Buffer buffer,
int start,
int end,
byte[] cmpTo) |
boolean |
startsWithIgnoreCase(java.lang.String s,
int pos) |
java.lang.String |
toString() |
java.lang.String |
toString(java.nio.charset.Charset charset) |
java.lang.String |
toString(int start,
int end) |
public void setBufferChunk(Buffer buffer, int start, int end)
public void setBufferChunk(Buffer buffer, int start, int end, int limit)
public Buffer getBuffer()
public void setBuffer(Buffer buffer)
public final boolean isNull()
public void allocate(int size)
public void append(BufferChunk bc)
public final int indexOf(java.lang.String s,
int fromIndex)
public boolean startsWithIgnoreCase(java.lang.String s,
int pos)
public int findBytesAscii(byte[] b)
Buffer.b - byte sequence to search for.Bufferpublic int hash()
public boolean equals(java.lang.CharSequence s)
public boolean equalsIgnoreCase(java.lang.CharSequence s)
public boolean equalsIgnoreCase(byte[] b)
public boolean equalsIgnoreCaseLowerCase(byte[] b)
b - the byte[] to comparepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.nio.charset.Charset charset)
public java.lang.String toString(int start,
int end)
protected final void resetStringCache()
protected final void reset()
public final void recycle()
protected void notifyDirectUpdate()
public static int indexOf(Buffer buffer, int off, int end, char qq)
public static int indexOf(Buffer buffer, int off, int end, java.lang.CharSequence s)
public int compareIgnoreCase(int start,
int end,
java.lang.String compareTo)
public int compare(int start,
int end,
java.lang.String compareTo)
public static boolean equalsIgnoreCaseLowerCase(Buffer buffer, int start, int end, byte[] cmpTo)
buffer - the byte[] to comparestart - buffer startend - buffer endcmpTo - byte[] to compare againstpublic static boolean startsWith(Buffer buffer, int start, int end, byte[] cmpTo)
Copyright © 2014 Oracle Corporation. All Rights Reserved.