|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.hunnysoft.jmime.CharBuffer
Character buffer structure.
The CharBuffer class is used as a character buffer
structure for various encoders and decoders.
ByteBuffer| Field Summary | |
char[] |
chars
Character array that contains input data or that provides output buffer space. |
int |
endPos
Offset of the end of the buffer. |
int |
pos
Offset of the beginning of the buffer. |
| Constructor Summary | |
CharBuffer()
|
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public char[] chars
public int pos
For an input buffer, this value is the offset of the beginning of the unconsumed data in the char array. For an output buffer, this value is the offset of the beginning of the unused space in the char array. Offsets are zero-based.
public int endPos
This value should be one larger than the offset of the last
valid character position in chars. For example, if
buf.chars[last] is the last valid char in the char
array, then endPos should be set to
last+1. Offsets are zero-based.
| Constructor Detail |
public CharBuffer()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||