public abstract class ZipStream4D extends CompressedStream4D
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFLATED |
static int |
STORED |
compressedStream, DEFLATE, GZIP_COMPRESSION, INFLATE, mode, streamBuffer, ZIP_COMPRESSION, ZLIB_COMPRESSIONskipBuffer| Constructor and Description |
|---|
ZipStream4D(RandomAccessStream stream,
int mode) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close()
Closes this I/O connection, releasing any associated resources.
|
void |
closeEntry() |
protected java.lang.Object |
createDeflate(Stream stream,
int compressionType) |
protected java.lang.Object |
createInflate(Stream stream) |
protected void |
finalize() |
ZipEntry |
getNextEntry() |
void |
putNextEntry(ZipEntry entry) |
int |
readBytes(byte[] buf,
int start,
int count)
Reads bytes from the stream.
|
int |
writeBytes(byte[] buf,
int start,
int count)
Writes bytes to the stream.
|
asInputStream, asOutputStream, asStream, asStream, skipBytes, wrapInputStream, wrapInputStreamToStream, write, writeBytes, writeBytes, writeBytespublic static final int STORED
public static final int DEFLATED
public ZipStream4D(RandomAccessStream stream, int mode)
protected java.lang.Object createInflate(Stream stream)
createInflate in class CompressedStream4Dprotected java.lang.Object createDeflate(Stream stream, int compressionType)
createDeflate in class CompressedStream4Dpublic int available()
throws IOException
IOExceptionpublic ZipEntry getNextEntry() throws IOException
IOExceptionpublic void putNextEntry(ZipEntry entry) throws IOException
IOExceptionpublic void closeEntry()
throws IOException
IOExceptionpublic int readBytes(byte[] buf,
int start,
int count)
throws IOException
StreamreadBytes in class CompressedStream4Dbuf - the byte array to read data intostart - the start position in the arraycount - the number of bytes to readIOExceptionpublic int writeBytes(byte[] buf,
int start,
int count)
throws IOException
StreamIOException if an error prevented the write
operation from occurring.writeBytes in class CompressedStream4Dbuf - the byte array to write data fromstart - the start position in the byte arraycount - the number of bytes to writeIOExceptionpublic void close()
throws IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class CompressedStream4DIOException - If an I/O error occurs.protected void finalize()
finalize in class CompressedStream4D