| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private ZipExtraField[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ZipResource(File
the zipfile as File. z, String the encoding used for filenames. enc, ZipEntry the ZipEntry. e)Construct a ZipResource representing the specified entry in the specified zipfile. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConfigured(ResourceCollection
the archive as a single element Resource collection. a)Overrides org. |
| protected void | fetchEntry()
Implements abstract org. |
| public String | |
| public ZipExtraField[] | |
| public InputStream | Returns: an InputStream object.Overrides org. |
| public int | |
| public OutputStream | Returns: an OutputStream to which content can be written.Overrides org. |
| protected ZipResource | getRef()
Overrides org. |
| public static InputStream | Returns: an InputStream objecta org.apache.tools.zip.ZipFile zipFile, String String a name of a zip entry zipEntry)Return an InputStream for reading the contents of a ZipEntry with autoclose. |
| public File | |
| public void | |
| private void | |
| public void | setRefid(Reference
the Reference to set. r)Overrides org. |
| public void |
| encoding | back to summary |
|---|---|
| private String encoding | |
| extras | back to summary |
|---|---|
| private ZipExtraField[] extras | |
| method | back to summary |
|---|---|
| private int method | |
| ZipResource | back to summary |
|---|---|
| public ZipResource() Default constructor. | |
| ZipResource | back to summary |
|---|---|
| public ZipResource(File z, String enc, ZipEntry e) Construct a ZipResource representing the specified entry in the specified zipfile. | |
| addConfigured | back to summary |
|---|---|
| public void addConfigured(ResourceCollection a) Overrides org. Sets the archive that holds this as a single element Resource collection.
| |
| fetchEntry | back to summary |
|---|---|
| protected void fetchEntry() Implements abstract org. fetches information from the named entry inside the archive. | |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() Get the encoding to use with the zipfile.
| |
| getExtraFields | back to summary |
|---|---|
| public ZipExtraField[] getExtraFields() Retrieves extra fields.
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Overrides org. Return an InputStream for reading the contents of this Resource.
| |
| getMethod | back to summary |
|---|---|
| public int getMethod() The compression method that has been used.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() throws IOException Overrides org. Get an OutputStream for the Resource.
| |
| getRef | back to summary |
|---|---|
| protected ZipResource getRef() Overrides org. Doc from org. Perform the check for circular references and return the referenced Resource.
| |
| getZipEntryStream | back to summary |
|---|---|
| public static InputStream getZipEntryStream(ZipFile zipFile, String zipEntry) throws IOException Return an InputStream for reading the contents of a ZipEntry with autoclose.
| |
| getZipfile | back to summary |
|---|---|
| public File getZipfile() Get the zipfile that holds this ZipResource.
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String enc) Set the encoding to use with the zipfile.
| |
| setEntry | back to summary |
|---|---|
| private void setEntry(ZipEntry e) | |
| setRefid | back to summary |
|---|---|
| public void setRefid(Reference r) Overrides org. Overrides the super version.
| |
| setZipfile | back to summary |
|---|---|
| public void setZipfile(File z) Set the zipfile that holds this ZipResource.
| |