org.apache.tools.ant.types.resources
Class TarResource
- Cloneable, Comparable, ResourceCollection
A Resource representation of an entry in a tar archive.
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 |
TarResource
public TarResource()
Default constructor.
TarResource
public TarResource(File a,
TarEntry e)
Construct a TarResource representing the specified
entry in the specified archive.
a
- the archive as File.e
- the TarEntry.
TarResource
public TarResource(Resource a,
TarEntry e)
Construct a TarResource representing the specified
entry in the specified archive.
a
- the archive as Resource.e
- the TarEntry.
fetchEntry
protected void fetchEntry()
fetches information from the named entry inside the archive.
- fetchEntry in interface ArchiveResource
getGid
public int getGid()
- the uid for the tar entry
getGroup
public String getGroup()
- the group name for the tar entry
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.
getUid
public int getUid()
- the uid for the tar entry
getUserName
public String getUserName()
- the user name for the tar entry