com.esri.arcgis.system
Class ZipArchive

java.lang.Object
  extended by com.esri.arcgis.system.ZipArchive
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IZipArchive, java.io.Serializable

public class ZipArchive
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IZipArchive

COM Class 'ZipArchive'. Generated 3/19/2015 1:20:47 PM from 'C:\ArcGIS\COM\esriSystem.olb'

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 =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.system.IZipArchive
IID, IID55df03ae_b4f8_4387_b8b5_6fb22b15ddac, xxDummy
 
Constructor Summary
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;
 
Method Summary
 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()
          Deprecated. Internal use only.
 int hashCode()
          the hashcode for this object
 void openArchive(java.lang.String archiveName)
          Opens an existing archive.
 void release()
          Release a ZipArchive.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipArchive

public ZipArchive()
           throws java.io.IOException,
                  java.net.UnknownHostException
Constructs a ZipArchive using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

ZipArchive

public ZipArchive(java.lang.Object obj)
           throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ZipArchive theZipArchive = (ZipArchive) obj;

Construct a ZipArchive using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to ZipArchive.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a ZipArchive.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

openArchive

public void openArchive(java.lang.String archiveName)
                 throws java.io.IOException,
                        AutomationException
Opens an existing archive.

Specified by:
openArchive in interface IZipArchive
Parameters:
archiveName - The archiveName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createArchive

public void createArchive(java.lang.String archiveName)
                   throws java.io.IOException,
                          AutomationException
Creates a new archive.

Specified by:
createArchive in interface IZipArchive
Parameters:
archiveName - The archiveName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

closeArchive

public void closeArchive()
                  throws java.io.IOException,
                         AutomationException
Closes the archive.

Specified by:
closeArchive in interface IZipArchive
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addFile

public void addFile(java.lang.String inputFile)
             throws java.io.IOException,
                    AutomationException
Compresses a file and adds it to the archive.

Specified by:
addFile in interface IZipArchive
Parameters:
inputFile - The inputFile (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFileNames

public IEnumBSTR getFileNames()
                       throws java.io.IOException,
                              AutomationException
Obtains the list of files in the archive.

Specified by:
getFileNames in interface IZipArchive
Returns:
A reference to a com.esri.arcgis.system.IEnumBSTR
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

extractFile

public void extractFile(java.lang.String file,
                        java.lang.String outputDir)
                 throws java.io.IOException,
                        AutomationException
Extracts a file from the archive to the output directory.

Specified by:
extractFile in interface IZipArchive
Parameters:
file - The file (in)
outputDir - The outputDir (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

extract

public void extract(java.lang.String outputDir)
             throws java.io.IOException,
                    AutomationException
Extracts all items in the archive to the output directory.

Specified by:
extract in interface IZipArchive
Parameters:
outputDir - The outputDir (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.