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