|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xbill.DNS.Master
public class Master
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(java.io.InputStream in)
Initializes the master file reader. |
|
Master(java.io.InputStream in,
Name origin)
Initializes the master file reader. |
|
Master(java.io.InputStream in,
Name origin,
long ttl)
Initializes the master file reader. |
|
Master(java.lang.String filename)
Initializes the master file reader and opens the specified master file. |
|
Master(java.lang.String filename,
Name origin)
Initializes the master file reader and opens the specified master file. |
|
Master(java.lang.String filename,
Name origin,
long ttl)
Initializes the master file reader and opens the specified master file. |
|
| Method Summary | |
|---|---|
Record |
_nextRecord()
Returns the next record in the master file. |
void |
expandGenerate(boolean wantExpand)
Specifies whether $GENERATE statements should be expanded. |
protected void |
finalize()
|
java.util.Iterator |
generators()
Returns an iterator over the generators specified in the master file; that is, the parsed contents of $GENERATE statements. |
Record |
nextRecord()
Returns the next record in the master file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Master(java.lang.String filename,
Name origin,
long ttl)
throws java.io.IOException
filename - The master file.origin - The initial origin to append to relative names.ttl - The initial default TTL.
java.io.IOException - The master file could not be opened.
public Master(java.lang.String filename,
Name origin)
throws java.io.IOException
filename - The master file.origin - The initial origin to append to relative names.
java.io.IOException - The master file could not be opened.
public Master(java.lang.String filename)
throws java.io.IOException
filename - The master file.
java.io.IOException - The master file could not be opened.
public Master(java.io.InputStream in,
Name origin,
long ttl)
in - The input stream containing a master file.origin - The initial origin to append to relative names.ttl - The initial default TTL.
public Master(java.io.InputStream in,
Name origin)
in - The input stream containing a master file.origin - The initial origin to append to relative names.public Master(java.io.InputStream in)
in - The input stream containing a master file.| Method Detail |
|---|
public Record _nextRecord()
throws java.io.IOException
java.io.IOException - The master file could not be read, or was syntactically
invalid.
public Record nextRecord()
throws java.io.IOException
java.io.IOException - The master file could not be read, or was syntactically
invalid.public void expandGenerate(boolean wantExpand)
generators. This must be called before a $GENERATE
statement is seen during iteration to have an effect.
public java.util.Iterator generators()
Generatorprotected void finalize()
finalize in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||