|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.archiveutils.VirtualChild
Field Summary | |
---|---|
protected File |
_containingArchive
|
protected File |
_extractedFile
|
protected ISystemArchiveHandler |
_handler
|
String |
fullName
|
boolean |
isDirectory
|
String |
name
|
String |
path
|
Constructor Summary | |
---|---|
VirtualChild(ISystemArchiveHandler handler)
Constructs a new VirtualChild given a reference to its parent archive's handler, but does not populate any fields in the child. |
|
VirtualChild(ISystemArchiveHandler handler,
String fullVirtualName)
Constructs a new VirtualChild given a reference to its parent archive's handler ( handler ), and immediately populates the name and path info
for the VirtualChild given its fullVirtualName . |
|
VirtualChild(String fullVirtualName,
File containingArchive)
Constructs a new VirtualChild given the name of its parent archive, and immediately populates the name and path info for the VirtualChild given its fullVirtualName . |
Method Summary | |
---|---|
boolean |
exists()
|
String |
getArchiveStandardName()
|
String |
getComment()
|
long |
getCompressedSize()
|
String |
getCompressionMethod()
|
double |
getCompressionRatio()
|
File |
getContainingArchive()
|
File |
getExtractedFile()
|
boolean |
getExtractedFile(File destination)
Gets the extracted file or directory represented by this VirtualChild from the archive, and replaces the object referred to by destination with that extracted file or directory.
|
boolean |
getExtractedFile(File destination,
String sourceEncoding,
boolean isText)
Gets the extracted file or directory represented by this VirtualChild from the archive, and replaces the object referred to by destination with that extracted file or directory.
|
File |
getExtractedFile(String sourceEncoding,
boolean isText)
|
ISystemArchiveHandler |
getHandler()
|
long |
getSize()
|
long |
getTimeStamp()
|
void |
renameTo(String newName)
Renames this virtual child to newName. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public String fullName
public String name
public String path
public boolean isDirectory
protected ISystemArchiveHandler _handler
protected File _extractedFile
protected File _containingArchive
Constructor Detail |
public VirtualChild(ISystemArchiveHandler handler)
public VirtualChild(ISystemArchiveHandler handler, String fullVirtualName)
handler
), and immediately populates the name and path info
for the VirtualChild given its fullVirtualName
. Clients
must still populate the isDirectory field.
public VirtualChild(String fullVirtualName, File containingArchive)
fullVirtualName
. Clients
must still populate the isDirectory field.
NOTE: This constructor is intended only to be used for creating NON-EXISTENT
virtual children.
Method Detail |
public ISystemArchiveHandler getHandler()
public long getTimeStamp()
public long getSize()
public String getComment()
public long getCompressedSize()
public String getCompressionMethod()
public double getCompressionRatio()
public File getExtractedFile()
public File getExtractedFile(String sourceEncoding, boolean isText)
public boolean getExtractedFile(File destination)
destination
with that extracted file or directory.
Note that the extracted file is cached after it is extracted once, but if the
timestamps on the cached and archived files do not match, the cached file is erased,
and reextracted from the archive.
destination
is always overwritten with either what is cached, or
what is in the archive.
public boolean getExtractedFile(File destination, String sourceEncoding, boolean isText)
destination
with that extracted file or directory.
Note that the extracted file is cached after it is extracted once, but if the
timestamps on the cached and archived files do not match, the cached file is erased,
and reextracted from the archive.
destination
is always overwritten with either what is cached, or
what is in the archive.
public boolean exists()
public void renameTo(String newName)
public String getArchiveStandardName()
public File getContainingArchive()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |