|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.search.zip.ZArchive
Zipfile searcher.
ZFile
Field Summary | |
protected java.io.File |
m_fname
Zipfile filename. |
protected int |
m_serialNo
Zipfile open counter. |
protected java.util.zip.ZipFile |
m_zipfile
Zipfile file. |
static int |
SERIES
Series number. |
Constructor Summary | |
ZArchive()
Default constructor. |
Method Summary | |
void |
close()
Close this zipfile searcher. |
DocumentI |
create(java.lang.String name,
boolean append)
Create a new file entry in this zipfile searcher. |
boolean |
createSupported()
Determine if new zipfile entries can be created by this searcher. |
java.util.Enumeration |
find(DocumentFilterI filt)
Retrieve file entries from this zipfile matching given search criteria. |
void |
initialize(java.util.Hashtable parms)
Initialize this searcher. |
void |
open(java.lang.String path)
Open a given pathname for this zipfile searcher. |
boolean |
outputSupported()
Determine if zipfile entries can be written to this searcher. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SERIES
protected java.io.File m_fname
protected java.util.zip.ZipFile m_zipfile
protected int m_serialNo
ZFile
objects to detect whether or not they have become
invalidated.
Constructor Detail |
public ZArchive()
Method Detail |
public void initialize(java.util.Hashtable parms)
Note: This method does not actually do anything.
initialize
in interface DocumentSearcherI
parms
- A table containing name/value pairs with which to initialize this zipfile
searcher. This can be null.DocumentSearcherI.open(java.lang.String)
public void open(java.lang.String path) throws java.io.IOException, java.util.zip.ZipException
open
in interface DocumentSearcherI
path
- A pathname specifying the location of a zipfile to open and search.
This name must specify a filename on the local machine.
java.io.IOException
- Thrown if the specified path does not exist or is not accessible, or if it
is not a regular file, or if it is malformed, or if some other error
occurs.
java.util.zip.ZipException
DocumentSearcherI.close()
,
DocumentSearcherI.initialize(java.util.Hashtable)
public void close() throws java.io.IOException
close
in interface DocumentSearcherI
java.io.IOException
- Thrown if an error occurs.DocumentSearcherI.open(java.lang.String)
public java.util.Enumeration find(DocumentFilterI filt) throws java.io.IOException, java.lang.Exception
find
in interface DocumentSearcherI
filt
- A filter specifying file searching criteria. This can be null, in which
case all possible file entries for this searcher are returned.
ZIterator
object containing an enumeration of ZFile
objects representing the list of file entries found by this searcher, or
null if there are no matching file entries to be found.
java.io.IOException
- Thrown if the specified criteria are malformed, or if some other error
occurs.
java.lang.Exception
- Thrown if the specified criteria are malformed, or if some other error
occurs.public DocumentI create(java.lang.String name, boolean append) throws java.lang.UnsupportedOperationException
Note
This method is not supported.
name
- The name of the new file entry to create in this zipfile.append
- Specifies whether or not to append written data to the end of the file.
java.lang.UnsupportedOperationException
- Thrown, always.public boolean createSupported()
public boolean outputSupported()
outputSupported
in interface DocumentSearcherI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |