java.lang.Cloneable, java.lang.Comparable<Resource>, java.lang.Iterable<Resource>, ResourceCollectionpublic class TarResource extends ArchiveResource
description, location, projectMAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZE| Constructor | Description |
|---|---|
TarResource() |
Default constructor.
|
TarResource(java.io.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.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
fetchEntry() |
fetches information from the named entry inside the archive.
|
protected TarResource |
getCheckedRef() |
Performs the check for circular references and returns the
referenced object.
|
int |
getGid() |
Deprecated.
|
java.lang.String |
getGroup() |
|
java.io.InputStream |
getInputStream() |
Return an InputStream for reading the contents of this Resource.
|
long |
getLongGid() |
|
long |
getLongUid() |
|
java.io.OutputStream |
getOutputStream() |
Get an OutputStream for the Resource.
|
int |
getUid() |
Deprecated.
|
java.lang.String |
getUserName() |
addConfigured, checkEntry, compareTo, dieOnCircularReference, equals, getArchive, getLastModified, getMode, getSize, hashCode, isDirectory, isExists, setArchive, setMode, setRefid, toStringcheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesfinalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectas, asOptional, clone, getMagicNumber, getName, isFilesystemOnly, iterator, setDirectory, setExists, setLastModified, setName, setSize, size, toLongStringisEmpty, streampublic TarResource()
public TarResource(java.io.File a,
TarEntry e)
a - the archive as File.e - the TarEntry.public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class Resourcejava.io.IOException - if the tar file cannot be opened,
or the entry cannot be read.public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class Resourcejava.io.IOException - if unable to provide the content of this
Resource as a stream.java.lang.UnsupportedOperationException - if OutputStreams are not
supported for this Resource type.public java.lang.String getUserName()
public java.lang.String getGroup()
public long getLongUid()
@Deprecated public int getUid()
public long getLongGid()
@Deprecated public int getGid()
protected void fetchEntry()
fetchEntry in class ArchiveResourceprotected TarResource getCheckedRef()
DataTypegetCheckedRef in class ArchiveResource