Constructor and Description |
---|
BufferChunk() |
Modifier and Type | Method and Description |
---|---|
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(byte[] b)
Compares the message Buffer to the specified byte array.
|
boolean |
equals(byte[] b,
int offset,
int len)
Compares the message Buffer to the specified byte array.
|
static boolean |
equals(byte[] c,
int cOff,
int cLen,
Buffer t,
int tOff,
int tLen) |
boolean |
equals(char[] b,
int offset,
int len)
Compares the message Buffer to the specified char array.
|
boolean |
equals(CharSequence s) |
boolean |
equals(Object o) |
boolean |
equalsIgnoreCase(byte[] b) |
boolean |
equalsIgnoreCase(byte[] b,
int offset,
int len) |
boolean |
equalsIgnoreCase(char[] b,
int offset,
int len)
Compares the message Buffer to the specified char array ignoring case considerations.
|
boolean |
equalsIgnoreCase(CharSequence s) |
boolean |
equalsIgnoreCase(Object o) |
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() |
int |
hashCode() |
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() |
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(String s,
int pos) |
String |
toString() |
String |
toString(Charset charset) |
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 boolean startsWithIgnoreCase(String s, int pos)
public int findBytesAscii(byte[] b)
Buffer
.b
- byte sequence to search for.Buffer
public int hash()
public boolean equals(CharSequence s)
public boolean equals(byte[] b)
b
- the byte[]
to comparepublic boolean equals(byte[] b, int offset, int len)
b
- the byte[]
to compareoffset
- the offset in the arraylen
- number of bytes to checkpublic static boolean equals(byte[] c, int cOff, int cLen, Buffer t, int tOff, int tLen)
public boolean equals(char[] b, int offset, int len)
b
- the char[]
to compareoffset
- the offset in the arraylen
- number of chars to checkpublic boolean equalsIgnoreCase(Object o)
public boolean equalsIgnoreCase(CharSequence s)
public boolean equalsIgnoreCase(byte[] b)
public boolean equalsIgnoreCase(byte[] b, int offset, int len)
public boolean equalsIgnoreCase(char[] b, int offset, int len)
b
- the char[]
to compareoffset
- the offset in the arraylen
- number of chars to checkpublic boolean equalsIgnoreCaseLowerCase(byte[] b)
b
- the byte[]
to compareprotected 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, CharSequence s)
public int compareIgnoreCase(int start, int end, String compareTo)
public int compare(int start, int end, 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 © 2015 Oracle Corporation. All rights reserved.