public class ZipArchive extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IZipArchive
Description 'The ZipArchive object which manages zip archives.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
IID, IID55df03ae_b4f8_4387_b8b5_6fb22b15ddac, xxDummy
Constructor and Description |
---|
ZipArchive()
Constructs a ZipArchive using ArcGIS Engine.
|
ZipArchive(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
ZipArchive theZipArchive = (ZipArchive) obj; |
Modifier and Type | Method and Description |
---|---|
void |
addFile(java.lang.String inputFile)
Compresses a file and adds it to the archive.
|
void |
closeArchive()
Closes the archive.
|
void |
createArchive(java.lang.String archiveName)
Creates a new archive.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
void |
extract(java.lang.String outputDir)
Extracts all items in the archive to the output directory.
|
void |
extractFile(java.lang.String file,
java.lang.String outputDir)
Extracts a file from the archive to the output directory.
|
static java.lang.String |
getClsid()
getClsid.
|
IEnumBSTR |
getFileNames()
Obtains the list of files in the archive.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
int |
hashCode()
the hashcode for this object
|
void |
openArchive(java.lang.String archiveName)
Opens an existing archive.
|
void |
release()
Release this COM object reference
|
public ZipArchive() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic ZipArchive(java.lang.Object obj) throws java.io.IOException
ZipArchive theZipArchive = (ZipArchive) obj;
obj
to ZipArchive
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public void openArchive(java.lang.String archiveName) throws java.io.IOException, AutomationException
openArchive
in interface IZipArchive
archiveName
- The archiveName (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void createArchive(java.lang.String archiveName) throws java.io.IOException, AutomationException
createArchive
in interface IZipArchive
archiveName
- The archiveName (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void closeArchive() throws java.io.IOException, AutomationException
closeArchive
in interface IZipArchive
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void addFile(java.lang.String inputFile) throws java.io.IOException, AutomationException
addFile
in interface IZipArchive
inputFile
- The inputFile (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IEnumBSTR getFileNames() throws java.io.IOException, AutomationException
getFileNames
in interface IZipArchive
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void extractFile(java.lang.String file, java.lang.String outputDir) throws java.io.IOException, AutomationException
extractFile
in interface IZipArchive
file
- The file (in)outputDir
- The outputDir (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void extract(java.lang.String outputDir) throws java.io.IOException, AutomationException
extract
in interface IZipArchive
outputDir
- The outputDir (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.