org.xbill.DNS
Class Master

java.lang.Object
  |
  +--org.xbill.DNS.Master

public class Master
extends Object

A DNS master file parser. This incrementally parses the file, returning one record at a time. When directives are seen, they are added to the state and used when parsing future records.


Constructor Summary
Master(String filename)
          Begins parsing the specified file
 
Method Summary
 Record nextRecord()
          Returns the next record in the master file
static String readExtendedLine(BufferedReader br)
          Reads a line using the master file format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Master

public Master(String filename)
       throws IOException
Begins parsing the specified file
Method Detail

nextRecord

public Record nextRecord()
                  throws IOException
Returns the next record in the master file

readExtendedLine

public static String readExtendedLine(BufferedReader br)
                               throws IOException
Reads a line using the master file format. Removes all data following a semicolon and uses parentheses as line continuation markers.
Parameters:
br - The BufferedReader supplying the data
Returns:
A String representing the normalized line