public abstract class CommonsCompressArchiveResource
extends org.apache.tools.ant.types.resources.ArchiveResource
| Modifier | Constructor and Description |
|---|---|
protected |
CommonsCompressArchiveResource(ArchiveStreamFactory factory,
java.lang.String archiveType)
Default constructor.
|
protected |
CommonsCompressArchiveResource(ArchiveStreamFactory factory,
java.lang.String archiveType,
java.io.File a,
org.apache.commons.compress.archivers.ArchiveEntry e)
Construct a Resource representing the specified
entry in the specified archive.
|
protected |
CommonsCompressArchiveResource(ArchiveStreamFactory factory,
java.lang.String archiveType,
org.apache.tools.ant.types.Resource a,
org.apache.commons.compress.archivers.ArchiveEntry e)
Construct a Resource representing the specified
entry in the specified archive.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
fetchEntry()
fetches information from the named entry inside the archive.
|
java.lang.String |
getEncoding()
Get the encoding to use with the zipfile.
|
int |
getGid() |
java.io.InputStream |
getInputStream()
Return an InputStream for reading the contents of this Resource.
|
java.io.OutputStream |
getOutputStream()
Get an OutputStream for the Resource.
|
int |
getUid() |
void |
setEncoding(java.lang.String enc)
Set the encoding to use with the archive.
|
protected void |
setEntry(org.apache.commons.compress.archivers.ArchiveEntry e) |
void |
setRefid(org.apache.tools.ant.types.Reference r)
Overrides the super version.
|
addConfigured, 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, setProjectprotected CommonsCompressArchiveResource(ArchiveStreamFactory factory, java.lang.String archiveType)
protected CommonsCompressArchiveResource(ArchiveStreamFactory factory, java.lang.String archiveType, java.io.File a, org.apache.commons.compress.archivers.ArchiveEntry e)
a - the archive as File.e - the ArchiveEntry.protected CommonsCompressArchiveResource(ArchiveStreamFactory factory, java.lang.String archiveType, org.apache.tools.ant.types.Resource a, org.apache.commons.compress.archivers.ArchiveEntry e)
a - the archive as Resource.e - the ArchiveEntry.public void setEncoding(java.lang.String enc)
enc - the String encoding.public java.lang.String getEncoding()
public void setRefid(org.apache.tools.ant.types.Reference r)
setRefid in class org.apache.tools.ant.types.resources.ArchiveResourcer - the Reference to set.public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class org.apache.tools.ant.types.Resourcejava.io.IOException - if the archive cannot be opened,
or the entry cannot be read.public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class org.apache.tools.ant.types.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 int getUid()
public int getGid()
protected void fetchEntry()
fetchEntry in class org.apache.tools.ant.types.resources.ArchiveResourceprotected void setEntry(org.apache.commons.compress.archivers.ArchiveEntry e)