org.free.garminimg
Class ImgFileBag

java.lang.Object
  extended by org.free.garminimg.ImgFileBag

public class ImgFileBag
extends java.lang.Object

One .img file.


Nested Class Summary
static class ImgFileBag.Family
           
 
Constructor Summary
ImgFileBag(java.io.File file, ImgFilesBag parent)
           
 
Method Summary
 boolean close()
           
 boolean containsCoordinate(int longitude, int latitude)
           
 byte[] getBloc(long pos, long blocSize)
           
 java.lang.String getDescription()
           
 int getEastBoundary()
           
 ImgFileBag.Family getFamily()
           
 java.io.File getFile()
           
 long getFullSurface()
           
 org.free.garminimg.LblSubFile getLblFile()
           
 org.free.garminimg.NetSubFile getNetFile()
           
 int getNorthBoundary()
           
 org.free.garminimg.RgnSubFile getRgnFile()
           
 int getSouthBoundary()
           
 TreSubFile getTreFile()
           
 int getWestBoundary()
           
 int getXorByte()
           
 int guessLowestNbBits(int minLong, int maxLong, int minLat, int maxLat)
           
 void printDebug(java.io.PrintStream out)
           
 void readMap(int minLong, int maxLong, int minLat, int maxLat, int resolution, int objectKindFilter, java.util.BitSet objectTypeFilter, MapListener listener)
           
 void setFamily(ImgFileBag.Family family)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImgFileBag

public ImgFileBag(java.io.File file,
                  ImgFilesBag parent)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

guessLowestNbBits

public int guessLowestNbBits(int minLong,
                             int maxLong,
                             int minLat,
                             int maxLat)
                      throws java.io.IOException
Throws:
java.io.IOException

getDescription

public java.lang.String getDescription()

getBloc

public byte[] getBloc(long pos,
                      long blocSize)
               throws java.io.IOException
Throws:
java.io.IOException

getFullSurface

public long getFullSurface()
                    throws java.io.IOException
Throws:
java.io.IOException

printDebug

public void printDebug(java.io.PrintStream out)
                throws java.io.IOException
Throws:
java.io.IOException

getRgnFile

public org.free.garminimg.RgnSubFile getRgnFile()
                                         throws java.io.IOException
Throws:
java.io.IOException

getTreFile

public TreSubFile getTreFile()
                      throws java.io.IOException
Throws:
java.io.IOException

getLblFile

public org.free.garminimg.LblSubFile getLblFile()
                                         throws java.io.IOException
Throws:
java.io.IOException

getNetFile

public org.free.garminimg.NetSubFile getNetFile()
                                         throws java.io.IOException
Throws:
java.io.IOException

containsCoordinate

public boolean containsCoordinate(int longitude,
                                  int latitude)
                           throws java.io.IOException
Throws:
java.io.IOException

readMap

public void readMap(int minLong,
                    int maxLong,
                    int minLat,
                    int maxLat,
                    int resolution,
                    int objectKindFilter,
                    java.util.BitSet objectTypeFilter,
                    MapListener listener)
             throws java.io.IOException
Throws:
java.io.IOException

getFile

public java.io.File getFile()

close

public boolean close()
              throws java.io.IOException
Throws:
java.io.IOException

getFamily

public ImgFileBag.Family getFamily()

setFamily

public void setFamily(ImgFileBag.Family family)

getNorthBoundary

public int getNorthBoundary()
                     throws java.io.IOException
Throws:
java.io.IOException

getSouthBoundary

public int getSouthBoundary()
                     throws java.io.IOException
Throws:
java.io.IOException

getEastBoundary

public int getEastBoundary()
                    throws java.io.IOException
Throws:
java.io.IOException

getWestBoundary

public int getWestBoundary()
                    throws java.io.IOException
Throws:
java.io.IOException

getXorByte

public int getXorByte()
               throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008. All Rights Reserved.