org.apache.ant.compress.resources
Class TarResource
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.Resource
org.apache.tools.ant.types.resources.ArchiveResource
org.apache.ant.compress.resources.CommonsCompressArchiveResource
org.apache.ant.compress.resources.TarResource
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable, org.apache.tools.ant.types.ResourceCollection
public final class TarResource
- extends CommonsCompressArchiveResource
A Resource representation of an entry in a tar archive.
Fields inherited from class org.apache.tools.ant.types.Resource |
MAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZE |
Fields inherited from class org.apache.tools.ant.types.DataType |
checked, ref |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
Constructor Summary |
TarResource()
Default constructor. |
TarResource(java.io.File a,
java.lang.String enc,
org.apache.commons.compress.archivers.tar.TarArchiveEntry e)
Construct a TarResource representing the specified
entry in the specified archive. |
TarResource(java.io.File a,
org.apache.commons.compress.archivers.tar.TarArchiveEntry e)
Construct a TarResource representing the specified
entry in the specified archive. |
TarResource(org.apache.tools.ant.types.Resource a,
java.lang.String enc,
org.apache.commons.compress.archivers.tar.TarArchiveEntry e)
Construct a TarResource representing the specified
entry in the specified archive. |
TarResource(org.apache.tools.ant.types.Resource a,
org.apache.commons.compress.archivers.tar.TarArchiveEntry e)
Construct a TarResource representing the specified
entry in the specified archive. |
Method Summary |
java.lang.String |
getGroup()
|
java.lang.String |
getUserName()
|
protected void |
setEntry(org.apache.commons.compress.archivers.ArchiveEntry e)
|
Methods inherited from class org.apache.tools.ant.types.resources.ArchiveResource |
addConfigured, checkEntry, compareTo, dieOnCircularReference, equals, getArchive, getLastModified, getMode, getSize, hashCode, isDirectory, isExists, setArchive, setMode, toString |
Methods inherited from class org.apache.tools.ant.types.Resource |
as, clone, getMagicNumber, getName, isFilesystemOnly, iterator, setDirectory, setExists, setLastModified, setName, setSize, size, toLongString |
Methods inherited from class org.apache.tools.ant.types.DataType |
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
TarResource
public TarResource()
- Default constructor.
TarResource
public TarResource(java.io.File a,
org.apache.commons.compress.archivers.tar.TarArchiveEntry e)
- Construct a TarResource representing the specified
entry in the specified archive.
- Parameters:
a
- the archive as File.e
- the TarEntry.
TarResource
public TarResource(org.apache.tools.ant.types.Resource a,
org.apache.commons.compress.archivers.tar.TarArchiveEntry e)
- Construct a TarResource representing the specified
entry in the specified archive.
- Parameters:
a
- the archive as Resource.e
- the TarEntry.
TarResource
public TarResource(java.io.File a,
java.lang.String enc,
org.apache.commons.compress.archivers.tar.TarArchiveEntry e)
- Construct a TarResource representing the specified
entry in the specified archive.
- Parameters:
a
- the archive as File.enc
- the encoding used for filenames.e
- the TarEntry.- Since:
- Compress Antlib 1.2
TarResource
public TarResource(org.apache.tools.ant.types.Resource a,
java.lang.String enc,
org.apache.commons.compress.archivers.tar.TarArchiveEntry e)
- Construct a TarResource representing the specified
entry in the specified archive.
- Parameters:
a
- the archive as Resource.enc
- the encoding used for filenames.e
- the TarEntry.- Since:
- Compress Antlib 1.2
getUserName
public java.lang.String getUserName()
- Returns:
- the user name for the tar entry
getGroup
public java.lang.String getGroup()
- Returns:
- the group name for the tar entry
setEntry
protected void setEntry(org.apache.commons.compress.archivers.ArchiveEntry e)
- Overrides:
setEntry
in class CommonsCompressArchiveResource