org.apache.tools.ant.types.resources
public class TarResource extends ArchiveResource
Since: Ant 1.7
Constructor Summary | |
---|---|
TarResource()
Default constructor. | |
TarResource(File a, TarEntry e)
Construct a TarResource representing the specified
entry in the specified archive. | |
TarResource(Resource a, TarEntry e)
Construct a TarResource representing the specified
entry in the specified archive. |
Method Summary | |
---|---|
protected void | fetchEntry()
fetches information from the named entry inside the archive. |
int | getGid() |
String | getGroup() |
InputStream | getInputStream()
Return an InputStream for reading the contents of this Resource. |
OutputStream | getOutputStream()
Get an OutputStream for the Resource. |
int | getUid() |
String | getUserName() |
Parameters: a the archive as File. e the TarEntry.
Parameters: a the archive as Resource. e the TarEntry.
Returns: the uid for the tar entry
Returns: the group name for the tar entry
Returns: an InputStream object.
Throws: IOException if the tar file cannot be opened, or the entry cannot be read.
Returns: an OutputStream to which content can be written.
Throws: IOException if unable to provide the content of this Resource as a stream. UnsupportedOperationException if OutputStreams are not supported for this Resource type.
Returns: the uid for the tar entry
Returns: the user name for the tar entry