faa.tg.prep.aces
Class AcesParser

java.lang.Object
  extended by faa.tg.prep.aces.AcesParser

public class AcesParser
extends java.lang.Object

This class parses a ACES data stream into a series of Tokens represented by AcesToken. See the source: AcesParser.java

Version:
$id: $
Author:
Michael E Ross

Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
private  java.io.BufferedReader dataFileReader
           
private  java.io.File inFile
          the file the Aces Data will be read from
private  java.lang.String lineno
           
private  java.util.Stack stack
           
 
Constructor Summary
AcesParser(java.io.File inFile)
          Construct a AcesParser given a File to read from.
AcesParser(java.lang.String urlString)
          Construct a AcesParser given a url to read from.
AcesParser(java.net.URL url)
          Construct a AcesParser given a URL to read from.
 
Method Summary
private  java.lang.String cleanLine(java.lang.String line)
           
private  void fillStack()
           
 java.io.File getInFile()
           
private  java.lang.String getLineNo(java.lang.String line)
          Extract the NAS Linu Sequence Number form colums 73 to 80
 AcesToken getNextToken()
           
static void main(java.lang.String[] args)
           
 void push(AcesToken acesToken)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

inFile

private java.io.File inFile
the file the Aces Data will be read from


dataFileReader

private java.io.BufferedReader dataFileReader

stack

private java.util.Stack stack

lineno

private java.lang.String lineno
Constructor Detail

AcesParser

public AcesParser(java.io.File inFile)
Construct a AcesParser given a File to read from.


AcesParser

public AcesParser(java.lang.String urlString)
Construct a AcesParser given a url to read from.


AcesParser

public AcesParser(java.net.URL url)
Construct a AcesParser given a URL to read from.

Method Detail

getLineNo

private java.lang.String getLineNo(java.lang.String line)
Extract the NAS Linu Sequence Number form colums 73 to 80


push

public void push(AcesToken acesToken)

fillStack

private void fillStack()
                throws java.io.IOException
Throws:
java.io.IOException

getNextToken

public AcesToken getNextToken()
                       throws java.io.IOException
Throws:
java.io.IOException

cleanLine

private java.lang.String cleanLine(java.lang.String line)

getInFile

public java.io.File getInFile()
Returns:
the File from with the data is being read

main

public static void main(java.lang.String[] args)