public class ZipHandle extends StreamHandle
StreamHandle| Constructor and Description |
|---|
ZipHandle(java.lang.String file) |
ZipHandle(java.lang.String file,
java.util.zip.ZipEntry entry)
Constructs a new ZipHandle corresponding to the given entry of the
specified Zip file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this random access stream and releases
any system resources associated with the stream.
|
int |
getEntryCount()
Returns the number of entries.
|
java.lang.String |
getEntryName()
Get the name of the backing Zip entry.
|
java.io.DataInputStream |
getInputStream()
Returns the DataInputStream corresponding to the backing Zip entry.
|
static boolean |
isZipFile(java.lang.String file)
Returns true if the given filename is a Zip file.
|
protected void |
resetStream()
Close and reopen the stream; the stream pointer and mark should be
reset to 0.
|
getFilePointer, getOrder, length, read, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setOrder, skipBytes, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic ZipHandle(java.lang.String file)
throws java.io.IOException
java.io.IOExceptionpublic ZipHandle(java.lang.String file,
java.util.zip.ZipEntry entry)
throws java.io.IOException
HandleException - if the given file is not a Zip file.java.io.IOExceptionpublic static boolean isZipFile(java.lang.String file)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getEntryName()
public java.io.DataInputStream getInputStream()
public int getEntryCount()
public void close()
throws java.io.IOException
IRandomAccessclose in interface IRandomAccessclose in class StreamHandlejava.io.IOExceptionprotected void resetStream()
throws java.io.IOException
StreamHandleresetStream in class StreamHandlejava.io.IOExceptionCopyright © 2014 Open Microscopy Environment