public interface IXMLReader
| Modifier and Type | Method and Description |
|---|---|
boolean |
atEOF()
Returns true if there are no more characters left to be read.
|
boolean |
atEOFOfCurrentStream()
Returns true if the current stream has no more characters left to be read.
|
int |
getLineNr()
Returns the line number of the data in the current stream.
|
java.lang.String |
getPublicID()
Returns the current public ID.
|
java.lang.String |
getSystemID()
Returns the current system ID.
|
java.io.Reader |
openStream(java.lang.String publicID,
java.lang.String systemID)
Opens a stream from a public and system ID.
|
char |
read()
Reads a character.
|
void |
setPublicID(java.lang.String publicID)
Sets the public ID of the current stream.
|
void |
setSystemID(java.lang.String systemID)
Sets the system ID of the current stream.
|
void |
startNewStream(java.io.Reader reader)
Starts a new stream from a Java reader.
|
void |
unread(char ch)
Pushes the last character read back to the stream.
|
char read()
throws java.io.IOException
java.io.IOException - if no character could be readboolean atEOFOfCurrentStream()
throws java.io.IOException
java.io.IOException - if an I/O error occurredboolean atEOF()
throws java.io.IOException
java.io.IOException - if an I/O error occurredvoid unread(char ch)
throws java.io.IOException
ch - the character to push backjava.io.IOException - if an I/O error occurredint getLineNr()
java.io.Reader openStream(java.lang.String publicID,
java.lang.String systemID)
throws java.net.MalformedURLException,
java.io.FileNotFoundException,
java.io.IOException
publicID - the public ID, which may be nullsystemID - the system ID, which is never nulljava.net.MalformedURLException - if the system ID does not contain a valid URLjava.io.FileNotFoundException - if the system ID refers to a local file which does not
existjava.io.IOException - if an error occurred opening the streamvoid startNewStream(java.io.Reader reader)
reader - the reader to read the new data fromvoid setSystemID(java.lang.String systemID)
throws java.net.MalformedURLException
systemID - the system IDjava.net.MalformedURLException - if the system ID does not contain a valid URLvoid setPublicID(java.lang.String publicID)
publicID - the public IDjava.lang.String getSystemID()
java.lang.String getPublicID()