org.xbill.DNS
Class Master

java.lang.Object
  extended byorg.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.

Author:
Brian Wellington

Constructor Summary
Master(InputStream in)
          Begins parsing from an input reader
Master(InputStream in, Name defaultOrigin)
          Begins parsing from an input stream with an initial origin
Master(String filename)
          Begins parsing the specified file
Master(String filename, Name origin)
          Begins parsing the specified file with an initial origin
 
Method Summary
 Record nextRecord()
          Returns the next record in the master file
 
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,
              Name origin)
       throws IOException
Begins parsing the specified file with an initial origin


Master

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


Master

public Master(InputStream in,
              Name defaultOrigin)
Begins parsing from an input stream with an initial origin


Master

public Master(InputStream in)
Begins parsing from an input reader

Method Detail

nextRecord

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

Throws:
IOException