com.esri.arcgis.system
Interface IZlibCompression

All Superinterfaces:
Serializable
All Known Implementing Classes:
IZlibCompressionProxy

public interface IZlibCompression
extends Serializable

Provides access to compress and uncompress texture data.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void compress(int inSize, byte[] pInBuff, int[] pOutSize, byte[] pOutBuff)
          Compress the current the input buffer.
 void compressByLevel(int inSize, byte[] pInBuff, int level, int[] pOutSize, byte[] pOutBuff)
          Compress the current the input buffer by level.
 int getBufferSize(int size)
          Estimated buffer size of compress/uncompress texture data.
 void unCompress(int inSize, byte[] pInBuff, int[] pOutSize, byte[] pOutBuff)
          UnCompress the current the input buffer.
 

Method Detail

getBufferSize

int getBufferSize(int size)
                  throws IOException,
                         AutomationException
Estimated buffer size of compress/uncompress texture data.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
size - The size (in)
Returns:
The pSize
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

compress

void compress(int inSize,
              byte[] pInBuff,
              int[] pOutSize,
              byte[] pOutBuff)
              throws IOException,
                     AutomationException
Compress the current the input buffer. Uses best compression.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
inSize - The inSize (in)
pInBuff - An unsigned byte (in)
pOutSize - The pOutSize (in/out: use single element array)
pOutBuff - An unsigned byte (in/out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

compressByLevel

void compressByLevel(int inSize,
                     byte[] pInBuff,
                     int level,
                     int[] pOutSize,
                     byte[] pOutBuff)
                     throws IOException,
                            AutomationException
Compress the current the input buffer by level. If level less than 0, use default, if greater than best use best.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
inSize - The inSize (in)
pInBuff - An unsigned byte (in)
level - The level (in)
pOutSize - The pOutSize (in/out: use single element array)
pOutBuff - An unsigned byte (in/out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

unCompress

void unCompress(int inSize,
                byte[] pInBuff,
                int[] pOutSize,
                byte[] pOutBuff)
                throws IOException,
                       AutomationException
UnCompress the current the input buffer.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
inSize - The inSize (in)
pInBuff - An unsigned byte (in)
pOutSize - The pOutSize (in/out: use single element array)
pOutBuff - An unsigned byte (in/out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.