ps6.tigerdb
Class TigerRecord

java.lang.Object
  extended by ps6.tigerdb.TigerRecord
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TigerRwTLID

public class TigerRecord
extends Object
implements Serializable

TigerRecord.java

See Also:
Serialized Form

Nested Class Summary
protected static class TigerRecord.NoInt
           
 
Field Summary
static long serialVersionUID
           
 
Constructor Summary
TigerRecord()
          Special ctor to work around predefined record length (Record Type C seems to be flawed.
TigerRecord(String s, int recordSize)
           
 
Method Summary
protected  void die(String reason)
           
protected static GeoPoint makeGP(int lng, int lat)
           
 DirectedStreetNumberRange parseAddrRange(String frStr, String toStr)
           
protected  int toInt(String s)
          Parses `s' as an int, with the following additions to the standard Integer.parseInt() method: 1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

TigerRecord

public TigerRecord()
Special ctor to work around predefined record length (Record Type C seems to be flawed.


TigerRecord

public TigerRecord(String s,
                   int recordSize)
Method Detail

makeGP

protected static GeoPoint makeGP(int lng,
                                 int lat)

die

protected void die(String reason)

toInt

protected int toInt(String s)
             throws TigerRecord.NoInt,
                    NonNumericDataException
Parses `s' as an int, with the following additions to the standard Integer.parseInt() method: 1. White space around `s' is allowed (and ignored) 2. If s is an empty string after trimming, throws NoInt 3. The number may be prefixed by a '+' character. 4. If s is contains non-numeric data, throws NonNumericDataException

Throws:
TigerRecord.NoInt
NonNumericDataException

parseAddrRange

public DirectedStreetNumberRange parseAddrRange(String frStr,
                                                String toStr)
                                         throws BadRecordException
Throws:
BadRecordException