com.ls.util.io
Class BufferedInputSource
java.lang.Object
|
+--com.ls.util.io.BufferedInputSource
- public class BufferedInputSource
- extends Object
The InputSource class reads and buffers from an Input Source. It allows to use the buffered data character wise.
This is done due to performance reasons.
- Version:
- $Revision: 1.2 $
- Author:
- Last modified by $Author: TBerk $
Method Summary |
void |
fillBuffer()
buffers the loaded input stream |
byte |
readByte()
returns a byte of the currently filled buffer and increase the buffer index to the next byte. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferedInputSource
public BufferedInputSource(InputStream inputStream)
- Constructor with no additional method calls.
- Parameters:
inputStream
- that has to be processed
fillBuffer
public void fillBuffer()
- buffers the loaded input stream
readByte
public byte readByte()
- returns a byte of the currently filled buffer and increase the buffer index to the next byte.
- Returns:
- the byte read from the input source buffer. Returns -1 if the end of file reached.