org.apache.tools.ant.types.resources
Class ZipResource
- Cloneable, Comparable, ResourceCollection
A Resource representation of an entry in a zipfile.
ZipResource() - Default constructor.
|
ZipResource(File z, String enc, ZipEntry e) - Construct a ZipResource representing the specified
entry in the specified zipfile.
|
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.
|
String | getEncoding() - Get the encoding to use with the zipfile.
|
InputStream | getInputStream() - Return an InputStream for reading the contents of this Resource.
|
OutputStream | getOutputStream() - Get an OutputStream for the Resource.
|
File | getZipfile() - Get the zipfile that holds this ZipResource.
|
void | setEncoding(String enc) - Set the encoding to use with the zipfile.
|
void | setRefid(Reference r) - Overrides the super version.
|
void | setZipfile(File z) - Set the zipfile that holds this ZipResource.
|
addConfigured , compareTo , equals , fetchEntry , getArchive , getLastModified , getMode , getSize , hashCode , isDirectory , isExists , setArchive , setMode , setRefid , toString |
clone , compareTo , equals , getInputStream , getLastModified , getMagicNumber , getName , getOutputStream , getSize , hashCode , isDirectory , isExists , isFilesystemOnly , iterator , setDirectory , setExists , setLastModified , setName , setRefid , setSize , size , toLongString , toString |
checkAttributesAllowed , checkChildrenAllowed , circularReference , clone , dieOnCircularReference , dieOnCircularReference , dieOnCircularReference , getCheckedRef , getCheckedRef , getCheckedRef , getCheckedRef , getDataTypeName , getRefid , invokeCircularReferenceCheck , isChecked , isReference , noChildrenAllowed , setChecked , setRefid , toString , tooManyAttributes |
ZipResource
public ZipResource()
Default constructor.
ZipResource
public ZipResource(File z,
String enc,
ZipEntry e)
Construct a ZipResource representing the specified
entry in the specified zipfile.
z
- the zipfile as File.enc
- the encoding used for filenames.e
- the ZipEntry.
addConfigured
public void addConfigured(ResourceCollection a)
Sets the archive that holds this as a single element Resource
collection.
- addConfigured in interface ArchiveResource
a
- the archive as a single element Resource collection.
fetchEntry
protected void fetchEntry()
fetches information from the named entry inside the archive.
- fetchEntry in interface ArchiveResource
getEncoding
public String getEncoding()
Get the encoding to use with the zipfile.
getInputStream
public InputStream getInputStream()
throws IOException
Return an InputStream for reading the contents of this Resource.
- getInputStream in interface Resource
getOutputStream
public OutputStream getOutputStream()
throws IOException
Get an OutputStream for the Resource.
- getOutputStream in interface Resource
- an OutputStream to which content can be written.
getZipfile
public File getZipfile()
Get the zipfile that holds this ZipResource.
setEncoding
public void setEncoding(String enc)
Set the encoding to use with the zipfile.
enc
- the String encoding.
setZipfile
public void setZipfile(File z)
Set the zipfile that holds this ZipResource.
z
- the zipfile as a File.