com.sygem.jazz3d3
Class Decompressor
java.lang.Object
|
+--com.sygem.jazz3d3.Decompressor
- Direct Known Subclasses:
- GZipDecompressor, ZipDecompressor
- public abstract class Decompressor
- extends java.lang.Object
General purpose abstract class representing a decompressor.
Subclasses
should provide concrete implementations of at least the 2 methods provided here.
- Version:
- 3.0a
- Author:
- SyGem Software
Method Summary |
abstract java.io.InputStream |
extractFirstEntry(java.io.InputStream i)
Extracts the first entry from a compressed input stream. |
abstract long |
getFileSize()
Get the size of the first file in the compressed stream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Decompressor
public Decompressor()
extractFirstEntry
public abstract java.io.InputStream extractFirstEntry(java.io.InputStream i)
- Extracts the first entry from a compressed input stream. The result must
be another input stream.
getFileSize
public abstract long getFileSize()
- Get the size of the first file in the compressed stream.
If it is not possible to determine this value, the decompressor
should return -1.