| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public static interface AbstractNonBlockingStream.ISource
| Method Summary | |
|---|---|
|  void | addFirst(ByteBuffer[] bufs) | 
|  void | append(ByteBuffer[] bufs,
       int size)append a byte buffer array to this source. | 
|  ByteBuffer[] | copy() | 
|  ByteBuffer[] | drain()drain the source | 
|  int | getSize()return the current size | 
|  int | getVersion(boolean mark)return a int, which represent the version. | 
|  ByteBuffer[] | readByteBufferByDelimiter(byte[] delimiter,
                          int maxLength) | 
|  ByteBuffer[] | readByteBufferByLength(int length) | 
|  ByteBuffer | readSingleByteBuffer(int length)read bytes | 
|  void | reset()clean the source | 
|  int | retrieveIndexOf(byte[] delimiter,
                int maxReadSize)return the index of the delimiter or -1 if the delimiter has not been found | 
|  void | setVersion(int version) | 
|  String | toString(String encoding) | 
| Method Detail | 
|---|
void reset()
int getVersion(boolean mark)
void setVersion(int version)
int getSize()
void append(ByteBuffer[] bufs,
            int size)
bufs - the ByteBufferssize - the sizevoid addFirst(ByteBuffer[] bufs)
ByteBuffer[] drain()
ByteBuffer[] copy()
ByteBuffer readSingleByteBuffer(int length)
                                throws BufferUnderflowException
length - the length
BufferUnderflowException - if the buffer`s limit has been reached
ByteBuffer[] readByteBufferByLength(int length)
                                    throws BufferUnderflowException
BufferUnderflowException
ByteBuffer[] readByteBufferByDelimiter(byte[] delimiter,
                                       int maxLength)
                                       throws IOException,
                                              BufferUnderflowException,
                                              MaxReadSizeExceededException
IOException
BufferUnderflowException
MaxReadSizeExceededException
int retrieveIndexOf(byte[] delimiter,
                    int maxReadSize)
                    throws IOException,
                           MaxReadSizeExceededException
delimiter - the delimitermaxReadSize - the max read size
IOException - in an exception occurs
MaxReadSizeExceededException - if the max read size has been reachedString toString(String encoding)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||