|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IXMLReader
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. |
String |
getPublicID()
Returns the current public ID. |
int |
getStreamLevel()
Returns the current "level" of the stream on the stack of streams. |
String |
getSystemID()
Returns the current system ID. |
Reader |
openStream(String publicID,
String systemID)
Opens a stream from a public and system ID. |
char |
read()
Reads a character. |
void |
setPublicID(String publicID)
Sets the public ID of the current stream. |
void |
setSystemID(String systemID)
Sets the system ID of the current stream. |
void |
startNewStream(Reader reader)
Starts a new stream from a Java reader. |
void |
startNewStream(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 |
---|
char read() throws IOException
IOException
- If no character could be read.boolean atEOFOfCurrentStream() throws IOException
IOException
- If an I/O error occurred.boolean atEOF() throws IOException
IOException
- If an I/O error occurred.void unread(char ch) throws IOException
ch
- the character to push back.
IOException
- If an I/O error occurred.int getLineNr()
Reader openStream(String publicID, String systemID) throws MalformedURLException, FileNotFoundException, IOException
publicID
- the public ID, which may be null.systemID
- the system ID, which is never null.
MalformedURLException
- If the system ID does not contain a valid URL.
FileNotFoundException
- If the system ID refers to a local file which does not exist.
IOException
- If an error occurred opening the stream.void startNewStream(Reader reader)
reader
- the reader to read the new data from.void startNewStream(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 entityint getStreamLevel()
void setSystemID(String systemID) throws MalformedURLException
systemID
- the system ID.
MalformedURLException
- If the system ID does not contain a valid URL.void setPublicID(String publicID)
publicID
- the public ID.String getSystemID()
String getPublicID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |