|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.prep.aces.geomaps.DcpWord
faa.tg.prep.aces.geomaps.GeoMapHeader
public class GeoMapHeader
GeoMapHeader contains the map-length (in bytes), the map name, and an integer representing how many bytes to skip until other DcpWords are received.See the source GeoMapHeader.java
| Field Summary | |
|---|---|
private int |
bytesToSkip
|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private java.io.DataInputStream |
dis
|
private static int |
EBASE
|
private static java.lang.String |
EBCDIC
|
private int |
mapLength
|
private java.lang.String |
mapName
|
private int |
tempChar
|
private int[] |
word
|
private static int |
WORD_LENGTH
|
private static int |
WORDS_IN_NAME_LENGTH
|
private Distance |
xCenterCoord
|
private Distance |
yCenterCoord
|
| Fields inherited from class faa.tg.prep.aces.geomaps.DcpWord |
|---|
ID, MAX_LINEVALUE, MAX_SYMBOLVALUE, MIN_LINEVALUE, MIN_SYMBOLVALUE |
| Constructor Summary | |
|---|---|
GeoMapHeader(java.io.BufferedInputStream bis)
Constructor - Construct a new GeoMapHeader from the BufferedInputStream. |
|
| Method Summary | |
|---|---|
int |
getBytesConsumed()
Method getBytesConsumed |
int |
getMapLength()
Method getMapLength returns the mapLength field of this object. |
java.lang.String |
getMapName()
Method getMapName is an accessor to the mapName field of this object. |
private void |
getToDcpWords()
getToDcpWords moves the position in the BufferdInputStream to the location of the first DcpWord. |
Distance |
getXCoord()
Method getXCoord |
Distance |
getYCoord()
Method getYCoord |
private void |
setCoords()
Method setCoords() Sets the xCoord and yCoord relating to the geomap center coords. |
private void |
setMapLength()
The first 2 bytes in every map contain the length of that map in bytes. |
private void |
setMapName()
After the MapLength is retrieved we have the map name in ebcdic form. |
| Methods inherited from class faa.tg.prep.aces.geomaps.DcpWord |
|---|
alignmentWordCheck, getClassTypeNumber, getDIS, getFirstHalf, getSecondHalf, getWord, nextWord |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CVS_VERSION_ID
private static final java.lang.String EBCDIC
private static final int EBASE
private static final int WORDS_IN_NAME_LENGTH
private static final int WORD_LENGTH
private int[] word
private java.io.DataInputStream dis
private java.lang.String mapName
private int bytesToSkip
private int mapLength
private int tempChar
private Distance xCenterCoord
private Distance yCenterCoord
| Constructor Detail |
|---|
public GeoMapHeader(java.io.BufferedInputStream bis)
throws java.io.EOFException,
java.io.IOException
bis - is the BufferedInputStream to read the bytes from.
java.io.EOFException
java.io.IOException| Method Detail |
|---|
private void setMapLength()
throws java.io.EOFException
java.io.EOFException
private void setMapName()
throws java.io.EOFException,
java.lang.StringIndexOutOfBoundsException
java.io.EOFException
java.lang.StringIndexOutOfBoundsException
private void getToDcpWords()
throws java.io.EOFException
java.io.EOFExceptionprivate void setCoords()
public final java.lang.String getMapName()
public final int getMapLength()
public final int getBytesConsumed()
getBytesConsumed in class DcpWordpublic final Distance getXCoord()
public final Distance getYCoord()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||