|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.enginecore.PackageFile
public class PackageFile
An object for holding package files.
Constructor Summary | |
---|---|
PackageFile()
Constructs a PackageFile using ArcGIS Engine. |
|
PackageFile(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. PackageFile thePackageFile = (PackageFile) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
IStringArray |
unpack(String fileorURL,
String[] pUnpackLocation)
Unpacks a package. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public PackageFile() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic PackageFile(Object obj) throws IOException
PackageFile thePackageFile = (PackageFile) obj;
obj
to PackageFile
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IStringArray unpack(String fileorURL, String[] pUnpackLocation) throws IOException, AutomationException
The Unpack method requires a reference to a string and the path to the package that is being unpacked. Developers can pass in a string to the location they want the package to unpack to. This should be a general location. After the package unpacks the string will be updated with the path to the content of the package. For example, if a you are unpacking a Map Package to c:\Packages, the unpack location string will be updated to the path to the MXD.
If a package has been previously unpacked to a different location the path to the previous location will be returned. Passing in an empty string will use the default package location.
The unpack method returns a StringArray containing the path to the package content.
The unpack method does not support Geoprocessing Packages.
unpack
in interface IPackageFile
fileorURL
- The fileorURL (in)pUnpackLocation
- The pUnpackLocation (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |