|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IXMLReader reads the data to be parsed.
Method Summary | |
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. |
int |
getStreamLevel()
Returns the current "level" of the stream on the stack of streams. |
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 |
startNewStream(java.io.Reader reader,
boolean isInternalEntity)
Starts a new stream from a Java reader. |
void |
unread(char ch)
Pushes the last character read back to the stream. |
Method Detail |
public char read() throws java.io.IOException
java.io.IOException
- If no character could be read.public boolean atEOFOfCurrentStream() throws java.io.IOException
java.io.IOException
- If an I/O error occurred.public boolean atEOF() throws java.io.IOException
java.io.IOException
- If an I/O error occurred.public void unread(char ch) throws java.io.IOException
ch
- the character to push back.
java.io.IOException
- If an I/O error occurred.public int getLineNr()
public 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 null.systemID
- the system ID, which is never null.
java.net.MalformedURLException
- If the system ID does not contain a valid URL.
java.io.FileNotFoundException
- If the system ID refers to a local file which does not exist.
java.io.IOException
- If an error occurred opening the stream.public void startNewStream(java.io.Reader reader)
reader
- the reader to read the new data from.public void startNewStream(java.io.Reader reader, boolean isInternalEntity)
reader
- the non-null reader to read the new data fromisInternalEntity
- true if the reader is produced by resolving
an internal entitypublic int getStreamLevel()
public void setSystemID(java.lang.String systemID) throws java.net.MalformedURLException
systemID
- the system ID.
java.net.MalformedURLException
- If the system ID does not contain a valid URL.public void setPublicID(java.lang.String publicID)
publicID
- the public ID.public java.lang.String getSystemID()
public java.lang.String getPublicID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |