|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.build.xml.XMLScanner
public final class XMLScanner
This class scans an XML document and creates atomic tokens.
| Constructor Summary | |
|---|---|
XMLScanner(BufferInput in)
Initializes the scanner. |
|
XMLScanner(java.lang.String file)
Constructor. |
|
| Method Summary | |
|---|---|
void |
finish()
Finishes file scanning. |
static void |
main(java.lang.String[] args)
Main method; used for testing purposes. |
boolean |
more()
Returns true if the document scanning has been completed. |
void |
next()
Reads and interprets the next token from the input stream. |
void |
prevChar(int p)
Jumps the specified number of characters back. |
void |
scan()
Read and interpret all tokens from the input stream. |
static boolean |
valid(int ch)
Checks if the specified character is an XML whitespace. |
static boolean |
whitespace(int ch)
Checks if the specified character is an XML whitespace. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLScanner(BufferInput in)
in - input stream
public XMLScanner(java.lang.String file)
throws java.io.IOException
file - input file
java.io.IOException - I/O Exception| Method Detail |
|---|
public void finish()
throws java.io.IOException
java.io.IOException - I/O Exceptionpublic static void main(java.lang.String[] args)
args - command line argumentspublic boolean more()
public void next()
throws BuildException
BuildException - Build Exceptionpublic void prevChar(int p)
p - number of characters
public void scan()
throws BuildException
BuildException - Build Exceptionpublic static boolean valid(int ch)
ch - the letter to be checked
public static boolean whitespace(int ch)
ch - the letter to be checked
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||