| java.lang.Object org.xbill.DNS.Master
Master | public class Master (Code) | | 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(File file, Name origin, long initialTTL) | public | Master(String filename, Name origin, long ttl) Initializes the master file reader and opens the specified master file. | public | Master(String filename, Name origin) Initializes the master file reader and opens the specified master file. | public | Master(String filename) Initializes the master file reader and opens the specified master file. | public | Master(InputStream in, Name origin, long ttl) Initializes the master file reader. | public | Master(InputStream in, Name origin) Initializes the master file reader. | public | Master(InputStream in) Initializes the master file reader. |
Method Summary | |
public Record | _nextRecord() Returns the next record in the master file. | public void | expandGenerate(boolean wantExpand) Specifies whether $GENERATE statements should be expanded. | protected void | finalize() | public Iterator | generators() Returns an iterator over the generators specified in the master file; that
is, the parsed contents of $GENERATE statements. | public Record | nextRecord() Returns the next record in the master file. |
Master | public Master(String filename, Name origin, long ttl) throws IOException(Code) | | Initializes the master file reader and opens the specified master file.
Parameters: filename - The master file. Parameters: origin - The initial origin to append to relative names. Parameters: ttl - The initial default TTL. throws: IOException - The master file could not be opened. |
Master | public Master(String filename, Name origin) throws IOException(Code) | | Initializes the master file reader and opens the specified master file.
Parameters: filename - The master file. Parameters: origin - The initial origin to append to relative names. throws: IOException - The master file could not be opened. |
Master | public Master(String filename) throws IOException(Code) | | Initializes the master file reader and opens the specified master file.
Parameters: filename - The master file. throws: IOException - The master file could not be opened. |
Master | public Master(InputStream in, Name origin, long ttl)(Code) | | Initializes the master file reader.
Parameters: in - The input stream containing a master file. Parameters: origin - The initial origin to append to relative names. Parameters: ttl - The initial default TTL. |
Master | public Master(InputStream in, Name origin)(Code) | | Initializes the master file reader.
Parameters: in - The input stream containing a master file. Parameters: origin - The initial origin to append to relative names. |
Master | public Master(InputStream in)(Code) | | Initializes the master file reader.
Parameters: in - The input stream containing a master file. |
_nextRecord | public Record _nextRecord() throws IOException(Code) | | Returns the next record in the master file. This will process any
directives before the next record.
The next record. throws: IOException - The master file could not be read, or was syntacticallyinvalid. |
expandGenerate | public void expandGenerate(boolean wantExpand)(Code) | | Specifies whether $GENERATE statements should be expanded. Whether
expanded or not, the specifications for generated records are available
by calling
Master.generators . This must be called before a $GENERATE
statement is seen during iteration to have an effect.
|
finalize | protected void finalize()(Code) | | |
generators | public Iterator generators()(Code) | | Returns an iterator over the generators specified in the master file; that
is, the parsed contents of $GENERATE statements.
See Also: Generator |
nextRecord | public Record nextRecord() throws IOException(Code) | | Returns the next record in the master file. This will process any
directives before the next record.
The next record. throws: IOException - The master file could not be read, or was syntacticallyinvalid. |
|
|