public class ZipResource extends ArchiveResource
MAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZEdescription, location, project| Constructor and Description | 
|---|
| ZipResource()Default constructor. | 
| ZipResource(java.io.File z,
           java.lang.String enc,
           ZipEntry e)Construct a ZipResource representing the specified
 entry in the specified zipfile. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addConfigured(ResourceCollection a)Sets the archive that holds this as a single element Resource
 collection. | 
| protected void | fetchEntry()fetches information from the named entry inside the archive. | 
| java.lang.String | getEncoding()Get the encoding to use with the zipfile. | 
| ZipExtraField[] | getExtraFields()Retrieves extra fields. | 
| java.io.InputStream | getInputStream()Return an InputStream for reading the contents of this Resource. | 
| int | getMethod()The compression method that has been used. | 
| java.io.OutputStream | getOutputStream()Get an OutputStream for the Resource. | 
| java.io.File | getZipfile()Get the zipfile that holds this ZipResource. | 
| void | setEncoding(java.lang.String enc)Set the encoding to use with the zipfile. | 
| void | setRefid(Reference r)Overrides the super version. | 
| void | setZipfile(java.io.File z)Set the zipfile that holds this ZipResource. | 
checkEntry, compareTo, dieOnCircularReference, equals, getArchive, getLastModified, getMode, getSize, hashCode, isDirectory, isExists, setArchive, setMode, toStringas, clone, getMagicNumber, getName, isFilesystemOnly, iterator, setDirectory, setExists, setLastModified, setName, setSize, size, toLongStringcheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic ZipResource()
public ZipResource(java.io.File z,
           java.lang.String enc,
           ZipEntry e)
z - the zipfile as File.enc - the encoding used for filenames.e - the ZipEntry.public void setZipfile(java.io.File z)
z - the zipfile as a File.public java.io.File getZipfile()
public void addConfigured(ResourceCollection a)
addConfigured in class ArchiveResourcea - the archive as a single element Resource collection.public void setEncoding(java.lang.String enc)
enc - the String encoding.public java.lang.String getEncoding()
public void setRefid(Reference r)
setRefid in class ArchiveResourcer - the Reference to set.public java.io.InputStream getInputStream()
                                   throws java.io.IOException
getInputStream in class Resourcejava.io.IOException - if the zip file cannot be opened,
         or the entry cannot be read.public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
getOutputStream in class Resourcejava.io.IOException - if unable to provide the content of this
         Resource as a stream.java.lang.UnsupportedOperationException - if OutputStreams are not
         supported for this Resource type.public ZipExtraField[] getExtraFields()
public int getMethod()
protected void fetchEntry()
fetchEntry in class ArchiveResource