|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.io.base.EncodingUtilImpl.AsciiProcessor
protected static class EncodingUtilImpl.AsciiProcessor
This inner class is used to process the byes from the underlying
InputStream in ASCII mode. It is used as long as no other encoding
has been detected.
| Field Summary | |
|---|---|
private char[] |
charBuffer
The character-buffer to fill by the reader. |
private int |
charOffset
The current index in charBuffer. |
| Constructor Summary | |
|---|---|
EncodingUtilImpl.AsciiProcessor()
The constructor. |
|
| Method Summary | |
|---|---|
int |
process(byte[] buffer,
int offset,
int length)
This method is called to process the number of length bytes
from the given buffer starting from the given
offset. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private char[] charBuffer
private int charOffset
charBuffer.
| Constructor Detail |
|---|
public EncodingUtilImpl.AsciiProcessor()
| Method Detail |
|---|
public int process(byte[] buffer,
int offset,
int length)
length bytes
from the given buffer starting from the given
offset.buffer. It is NOT permitted to modify the given
buffer unless this is explicitly specified by the calling
object (typically an implementation of ByteProcessable).
process in interface ByteProcessorbuffer - contains the bytes to process.offset - is the index where to start in the buffer.length - is the number of bytes to proceed.
length. However you can also return a
value less than length and greater or equal to zero, in order to
stop processing at a specific position.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||