Class ASReader
java.lang.Object
|
+--ASReader
- public class ASReader
- extends java.lang.Object
ASReader.java
Jim Gast, jgast@cs.wisc.edu.
This program reads the ASTree.txt file containing the
clusters of Autonomous Systems. See MakeASTree.java for
more information about that file.
An ASReader reads lines of ASTree.txt until EOF.
The ASTree file is expected to have:
- # Lines that start with "#" are comments
- AS Lines that start with AS represent an autonomous system
Each AS line contains:
- ASnnnnn - The AS number
- hops hh - integer, hops to the backbone
- parent ppppp - integer, AS number of the parent of this AS
- name ccccc - ASCII name of the AS
- long lllll - signed integer, longitude of this AS
Method Summary |
void |
close()
|
java.lang.String |
getFileName()
|
ASN[] |
loadASTree()
|
static void |
main(java.lang.String[] args)
main method is used for testing the class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FILE
public static final java.lang.String DEFAULT_FILE
- See Also:
- Constant Field Values
ASReader
public ASReader(java.lang.String fileName)
ASReader
public ASReader()
loadASTree
public ASN[] loadASTree()
throws java.io.IOException
java.io.IOException
close
public void close()
getFileName
public java.lang.String getFileName()
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- main method is used for testing the class
java.io.IOException