|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.http.util.BufferChunk
public class BufferChunk
Buffer chunk representation.
Helps HTTP module to avoid redundant String creation.
| Constructor Summary | |
|---|---|
BufferChunk()
|
|
| Method Summary | |
|---|---|
void |
allocate(int size)
|
void |
append(BufferChunk bc)
|
int |
compare(int start,
int end,
String compareTo)
|
int |
compareIgnoreCase(int start,
int end,
String compareTo)
|
void |
delete(int start,
int end)
|
boolean |
equals(CharSequence s)
|
boolean |
equalsIgnoreCase(CharSequence s)
|
int |
findBytesAscii(byte[] b)
Returns the starting index of the specified byte sequence within this Buffer. |
Buffer |
getBuffer()
|
int |
getEnd()
|
int |
getLength()
|
int |
getStart()
|
static int |
indexOf(Buffer buffer,
int off,
int end,
char qq)
|
static int |
indexOf(Buffer buffer,
int off,
int end,
CharSequence s)
|
int |
indexOf(char c,
int fromIndex)
|
int |
indexOf(String s,
int fromIndex)
|
boolean |
isNull()
|
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)
|
boolean |
startsWithIgnoreCase(String s,
int pos)
|
CharChunk |
toChars(CharChunk cc,
Charset encoding)
Convert a BufferChunk using the specified encoding. |
String |
toString()
|
String |
toString(Charset charset)
|
String |
toString(int start,
int end)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BufferChunk()
| Method Detail |
|---|
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 int getStart()
getStart in interface Chunkpublic void setStart(int start)
setStart in interface Chunkpublic int getEnd()
getEnd in interface Chunkpublic void setEnd(int end)
setEnd in interface Chunkpublic final int getLength()
getLength in interface Chunkpublic final boolean isNull()
public void allocate(int size)
public void delete(int start,
int end)
delete in interface Chunkpublic void append(BufferChunk bc)
public final int indexOf(char c,
int fromIndex)
indexOf in interface Chunk
public final int indexOf(String s,
int fromIndex)
indexOf in interface Chunk
public boolean startsWithIgnoreCase(String s,
int pos)
public int findBytesAscii(byte[] b)
Buffer.
b - byte sequence to search for.
Bufferpublic boolean equals(CharSequence s)
public boolean equalsIgnoreCase(CharSequence s)
public String toString()
toString in class Objectpublic String toString(Charset charset)
public String toString(int start,
int end)
toString in interface Chunkprotected final void resetStringCache()
protected final void reset()
public final void recycle()
public void notifyDirectUpdate()
notifyDirectUpdate in interface Chunk
public static int indexOf(Buffer buffer,
int off,
int end,
char qq)
public static int indexOf(Buffer buffer,
int off,
int end,
CharSequence s)
public int compareIgnoreCase(int start,
int end,
String compareTo)
public int compare(int start,
int end,
String compareTo)
public CharChunk toChars(CharChunk cc,
Charset encoding)
throws CharConversionException
BufferChunk using the specified encoding.
cc - char array to put result to.encoding - the encoding value
Exception
CharConversionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||