|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
com.gc.iotools.stream.base.AbstractInputStreamWrapper
public abstract class AbstractInputStreamWrapper
Provides common functionality to the easystream library:
| Field Summary | |
|---|---|
protected boolean |
closeCalled
|
protected InputStream |
source
|
| Constructor Summary | |
|---|---|
protected |
AbstractInputStreamWrapper(InputStream source)
Constructor for AbstractInputStreamWrapper. |
| Method Summary | |
|---|---|
void |
close()
|
protected abstract void |
closeOnce()
closeOnce |
protected abstract int |
innerRead(byte[] b,
int off,
int len)
innerRead |
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
long |
skip(long n)
|
| Methods inherited from class java.io.InputStream |
|---|
available, mark, markSupported, read, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean closeCalled
protected final InputStream source
| Constructor Detail |
|---|
protected AbstractInputStreamWrapper(InputStream source)
Constructor for AbstractInputStreamWrapper.
the - InputStream that is wrapped by this stream..| Method Detail |
|---|
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException
protected abstract void closeOnce()
throws IOException
closeOnce
IOException - if any error occurs reading the bytes.
protected abstract int innerRead(byte[] b,
int off,
int len)
throws IOException
innerRead
b - an array of byte.off - a int.len - a int.
IOException - if any error occurs reading the bytes.
public int read()
throws IOException
read in class InputStreamIOException
public final int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOException
public long skip(long n)
throws IOException
skip in class InputStreamIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||