com.sibvisions.util.io
Class ShadowCopyInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.sibvisions.util.io.ShadowCopyInputStream
- All Implemented Interfaces:
- Closeable
public class ShadowCopyInputStream
- extends FilterInputStream
The ShadowCopyInputStream is an InputStream wrapper that copies
every read byte to an internal cache.
|
Method Summary |
byte[] |
dump()
Gets the read bytes. |
int |
read()
|
int |
read(byte[] pContent,
int pOffset,
int pLength)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShadowCopyInputStream
public ShadowCopyInputStream(InputStream pStream)
- Creates a new instance of
ShadowCopyInputStream.
- Parameters:
pStream - the wrapped stream
read
public int read()
throws IOException
-
- Overrides:
read in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] pContent,
int pOffset,
int pLength)
throws IOException
-
- Overrides:
read in class FilterInputStream
- Throws:
IOException
dump
public byte[] dump()
- Gets the read bytes.
- Returns:
- the bytes
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.