org.freehep.util.io
Class DecompressableInputStream
java.lang.Object
java.io.InputStream
org.freehep.util.io.DecodingInputStream
org.freehep.util.io.DecompressableInputStream
- All Implemented Interfaces:
- Closeable
- Direct Known Subclasses:
- BitInputStream
public class DecompressableInputStream
- extends DecodingInputStream
Special stream that can be used to read uncompressed first and compressed
from a certain byte.
- Author:
- Mark Donszelmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecompressableInputStream
public DecompressableInputStream(InputStream input)
- Creates a Decompressable input stream from given stream.
- Parameters:
input - stream to read from.
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Overrides:
skip in class InputStream
- Throws:
IOException
startDecompressing
public void startDecompressing()
throws IOException
- Start reading in compressed mode from the next byte.
- Throws:
IOException - if read fails.
Copyright © 2012. All Rights Reserved.