Package 

Interface IArchiveFile


  • 
    public interface IArchiveFile
    
                        

    The IArchiveFile is primary used to load tiles from a file archive. Generally, this should only be used for archives that require little to no computation in order to provide a given tile.

    For cases thereby the tiles are rendered or manipulated (such as from another projection)

    • Method Summary

      Modifier and Type Method Description
      abstract void init(File pFile) initialize the file archive, such as performing initial scans, queries, opening a database, etc
      abstract InputStream getInputStream(ITileSource tileSource, long pMapTileIndex) Get the input stream for the requested tile and tile source.
      abstract void close() Closes the archive file and releases resources.
      abstract Set<String> getTileSources() returns a list of tile source names that are available in the archive, if supported.
      abstract void setIgnoreTileSource(boolean pIgnoreTileSource)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • init

         abstract void init(File pFile)

        initialize the file archive, such as performing initial scans, queries, opening a database, etc

      • getInputStream

         abstract InputStream getInputStream(ITileSource tileSource, long pMapTileIndex)

        Get the input stream for the requested tile and tile source.

        Also keep in mind that the tile source has an explicit tile size in pixels, and tile source name.

      • close

         abstract void close()

        Closes the archive file and releases resources.

      • getTileSources

         abstract Set<String> getTileSources()

        returns a list of tile source names that are available in the archive, if supported. Ifnot supported, return an empty set