Class MyBufferedInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FilterInputStream
|
+--MyBufferedInputStream
- public class MyBufferedInputStream
- extends java.io.FilterInputStream
| Fields inherited from class java.io.FilterInputStream |
in |
| Fields inherited from class java.io.InputStream |
SKIP_BUFFER_SIZE,
skipBuffer |
| Methods inherited from class java.io.FilterInputStream |
close,
mark,
markSupported,
read,
reset |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
buffer
protected byte[] buffer
bufferSize
protected int bufferSize
bufferIndex
protected int bufferIndex
bufferCapacity
protected int bufferCapacity
MyBufferedInputStream
public MyBufferedInputStream(java.io.InputStream in)
MyBufferedInputStream
public MyBufferedInputStream(java.io.InputStream in,
int bufferCapacity)
available
public int available()
throws java.io.IOException
- Overrides:
- available in class java.io.FilterInputStream
read
public int read()
throws java.io.IOException
- Overrides:
- read in class java.io.FilterInputStream
fillBuffer
protected void fillBuffer()
throws java.io.IOException
read
public int read(byte[] data,
int offset,
int length)
throws java.io.IOException
- Overrides:
- read in class java.io.FilterInputStream
skip
public long skip(long amount)
throws java.io.IOException
- Overrides:
- skip in class java.io.FilterInputStream