com.esri.arcgis.carto
Class TilesTable

java.lang.Object
  extended by com.esri.arcgis.carto.TilesTable
All Implemented Interfaces:
ITilesTable, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class TilesTable
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ITilesTable

A Tiles Table object.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
TilesTable()
          Constructs a TilesTable using ArcGIS Engine.
TilesTable(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
TilesTable theTilesTable = (TilesTable) obj;
 
Method Summary
 void close()
          Close the table.
 void create(String levelCacheDir, String format, int txStart, int txEnd, int tyStart, int tyEnd)
          Create the table.
 void delete(String levelCacheDir, String format, int ty, int tx)
          Delete the table.
 boolean equals(Object o)
          Compare this object with another
 boolean exists(String layerCacheDir, int ty, int tx)
          Table Exists
static String getClsid()
          getClsid.
 int getOffset(int ty, int tx)
          Get the row in the table corresponding to the given tileX and tileY
 int getTileCount()
          Get Tile Count
 int hashCode()
          the hashcode for this object
 int insertTile(int ty, int tx, IStream pStream)
          Insert the tile into the table.
 boolean isLocked()
          Is table locked
 void open(String levelCacheDir, int ty, int tx, boolean forReadOnly)
          Open the table.
 IStream queryTile(int ty, int tx)
          Query specific tile from the table.
 void updateTile(int ty, int tx, IStream pStream)
          Update Tile.
 
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

TilesTable

public TilesTable()
           throws IOException,
                  UnknownHostException
Constructs a TilesTable using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

TilesTable

public TilesTable(Object obj)
           throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
TilesTable theTilesTable = (TilesTable) obj;

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

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

getClsid

public static String getClsid()
getClsid.


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

create

public void create(String levelCacheDir,
                   String format,
                   int txStart,
                   int txEnd,
                   int tyStart,
                   int tyEnd)
            throws IOException,
                   AutomationException
Create the table.

Product Availability

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

Specified by:
create in interface ITilesTable
Parameters:
levelCacheDir - The levelCacheDir (in)
format - The format (in)
txStart - The txStart (in)
txEnd - The txEnd (in)
tyStart - The tyStart (in)
tyEnd - The tyEnd (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

delete

public void delete(String levelCacheDir,
                   String format,
                   int ty,
                   int tx)
            throws IOException,
                   AutomationException
Delete the table.

Product Availability

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

Specified by:
delete in interface ITilesTable
Parameters:
levelCacheDir - The levelCacheDir (in)
format - The format (in)
ty - The ty (in)
tx - The tx (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

open

public void open(String levelCacheDir,
                 int ty,
                 int tx,
                 boolean forReadOnly)
          throws IOException,
                 AutomationException
Open the table.

Product Availability

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

Specified by:
open in interface ITilesTable
Parameters:
levelCacheDir - The levelCacheDir (in)
ty - The ty (in)
tx - The tx (in)
forReadOnly - The forReadOnly (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

close

public void close()
           throws IOException,
                  AutomationException
Close the table.

Product Availability

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

Specified by:
close in interface ITilesTable
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getOffset

public int getOffset(int ty,
                     int tx)
              throws IOException,
                     AutomationException
Get the row in the table corresponding to the given tileX and tileY

Product Availability

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

Specified by:
getOffset in interface ITilesTable
Parameters:
ty - The ty (in)
tx - The tx (in)
Returns:
The pOffset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insertTile

public int insertTile(int ty,
                      int tx,
                      IStream pStream)
               throws IOException,
                      AutomationException
Insert the tile into the table.

Product Availability

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

Specified by:
insertTile in interface ITilesTable
Parameters:
ty - The ty (in)
tx - The tx (in)
pStream - A reference to a com.esri.arcgis.system.IStream (in)
Returns:
The pOffset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryTile

public IStream queryTile(int ty,
                         int tx)
                  throws IOException,
                         AutomationException
Query specific tile from the table.

Product Availability

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

Specified by:
queryTile in interface ITilesTable
Parameters:
ty - The ty (in)
tx - The tx (in)
Returns:
A reference to a com.esri.arcgis.system.IStream
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

updateTile

public void updateTile(int ty,
                       int tx,
                       IStream pStream)
                throws IOException,
                       AutomationException
Update Tile.

Product Availability

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

Specified by:
updateTile in interface ITilesTable
Parameters:
ty - The ty (in)
tx - The tx (in)
pStream - A reference to a com.esri.arcgis.system.IStream (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isLocked

public boolean isLocked()
                 throws IOException,
                        AutomationException
Is table locked

Product Availability

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

Specified by:
isLocked in interface ITilesTable
Returns:
The isLocked
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTileCount

public int getTileCount()
                 throws IOException,
                        AutomationException
Get Tile Count

Product Availability

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

Specified by:
getTileCount in interface ITilesTable
Returns:
The pTileCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exists

public boolean exists(String layerCacheDir,
                      int ty,
                      int tx)
               throws IOException,
                      AutomationException
Table Exists

Product Availability

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

Specified by:
exists in interface ITilesTable
Parameters:
layerCacheDir - The layerCacheDir (in)
ty - The ty (in)
tx - The tx (in)
Returns:
The pExists
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.