|
Rational Developer for Power Systems Software V8.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.etools.iseries.projects.resources.ObjectArchiveResource
public class ObjectArchiveResource
This class represents object archive which contains a save file and xml manifest file
| Constructor Summary | |
|---|---|
ObjectArchiveResource(IResource resource)
Constructor to be used when restoring a binary object from object archive. |
|
ObjectArchiveResource(String objLibrary,
String objName,
String objType,
String objSubtype,
String oarName)
Constructor to be used when creating an object archive from binary object. |
|
| Method Summary | |
|---|---|
String |
getObjLibrary()
|
String |
getObjName()
|
String |
getObjType()
|
File |
packObjectArchiveFile(File srcFile,
String filePath)
Creates an archive file (OAR file) in the directory specified by the filePath, using the attributes specified on the constructor. |
void |
readArchiveManifest(File manifest)
Reads the archive manifest in the argument into the state variables of this object. |
File |
unpackObjectArchiveFile(String destPath)
Unpacks the OAR file into a folder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectArchiveResource(String objLibrary,
String objName,
String objType,
String objSubtype,
String oarName)
objLibrary - Original library name of the binary object inside the save fileobjName - Original name of the binary object inside the save fileobjType - Original type of the binary object inside the save fileobjSubtype - Original subtype of the binary object inside the save fileoarName - Name of the object archive to be createdpublic ObjectArchiveResource(IResource resource)
resource - Object archive file inside an i project.| Method Detail |
|---|
public File packObjectArchiveFile(File srcFile,
String filePath)
srcFile - The file on the file system that is the local copy of a save file. This will be
packed into the OAR file along with a manifest. This file is then deleted from the
file system.filePath - the directory that will contain the OAR file consisting of the save file and the
manifest file.
public File unpackObjectArchiveFile(String destPath)
destPath - the directory in which to unpack the OAR file. This is a native file system path
pointing to a folder.
public void readArchiveManifest(File manifest)
manifest - the File object referencing the manifest.public String getObjLibrary()
public String getObjName()
public String getObjType()
|
Rational Developer for Power Systems Software V8.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||