public final class SevenZResource extends CommonsCompressArchiveResource
Constructor and Description |
---|
SevenZResource()
Default constructor.
|
SevenZResource(java.io.File z,
java.lang.String enc,
org.apache.commons.compress.archivers.sevenz.SevenZArchiveEntry e)
Construct a SevenZResource representing the specified
entry in the specified 7z file.
|
SevenZResource(org.apache.tools.ant.types.Resource z,
java.lang.String enc,
org.apache.commons.compress.archivers.sevenz.SevenZArchiveEntry e)
Construct a SevenZResource representing the specified
entry in the specified 7z archive.
|
Modifier and Type | Method and Description |
---|---|
protected void |
fetchEntry()
fetches information from the named entry inside the archive.
|
java.lang.Iterable |
getContentMethods()
Gets the (compression) methods to used for entry's content.
|
java.io.InputStream |
getInputStream()
Return an InputStream for reading the contents of this Resource.
|
java.io.File |
getSevenZFile()
Get the 7z file that holds this SevenZResource.
|
protected void |
setEntry(org.apache.commons.compress.archivers.ArchiveEntry e) |
void |
setSevenZFile(java.io.File z)
Set the 7z that holds this SevenZResource.
|
void |
setSevenZResource(org.apache.tools.ant.types.Resource z)
Set the 7z file that holds this SevenZResource.
|
getEncoding, getGid, getOutputStream, getUid, setEncoding, setRefid
addConfigured, checkEntry, compareTo, dieOnCircularReference, equals, getArchive, getLastModified, getMode, getSize, hashCode, isDirectory, isExists, setArchive, setMode, toString
as, clone, getMagicNumber, getName, isFilesystemOnly, iterator, setDirectory, setExists, setLastModified, setName, setSize, size, toLongString
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public SevenZResource()
public SevenZResource(java.io.File z, java.lang.String enc, org.apache.commons.compress.archivers.sevenz.SevenZArchiveEntry e)
z
- the 7z file as File.enc
- the encoding used for filenames - ignored.e
- the SevenZEntry.public SevenZResource(org.apache.tools.ant.types.Resource z, java.lang.String enc, org.apache.commons.compress.archivers.sevenz.SevenZArchiveEntry e)
z
- the 7z archiveenc
- the encoding used for filenames - ignored.e
- the SevenZEntry.public void setSevenZFile(java.io.File z)
z
- the 7z file as a File.public void setSevenZResource(org.apache.tools.ant.types.Resource z)
z
- the 7z as a Resource.public java.io.File getSevenZFile()
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class CommonsCompressArchiveResource
java.io.IOException
- if the sevenz file cannot be opened,
or the entry cannot be read.public java.lang.Iterable getContentMethods()
protected void fetchEntry()
fetchEntry
in class CommonsCompressArchiveResource
protected void setEntry(org.apache.commons.compress.archivers.ArchiveEntry e)
setEntry
in class CommonsCompressArchiveResource