Initializes the reader from a system and public ID.
Parameters: publicID - the public ID which may be null. Parameters: systemID - the non-null system ID. throws: MalformedURLException - if the system ID does not contain a valid URL throws: FileNotFoundException - if the system ID refers to a local file which does not exist throws: IOException - if an error occurred opening the stream
Creates a new reader using a file as input.
Parameters: filename - the name of the file containing the XML data throws: java.io.FileNotFoundException - if the file could not be found throws: java.io.IOException - if an I/O error occurred
Opens a stream from a public and system ID.
Parameters: publicID - the public ID, which may be null Parameters: systemID - the system ID, which is never null throws: java.net.MalformedURLException - if the system ID does not contain a valid URL throws: java.io.FileNotFoundException - if the system ID refers to a local file which does notexist throws: java.io.IOException - if an error occurred opening the stream
Sets the system ID of the current stream.
Parameters: systemID - the system ID throws: java.net.MalformedURLException - if the system ID does not contain a valid URL
Starts a new stream from a Java reader. The new stream is used temporary to read data from.
If that stream is exhausted, control returns to the parent stream.
Parameters: reader - the non-null reader to read the new data from
Converts a stream to a reader while detecting the encoding.
Parameters: stream - the input for the XML data. Parameters: charsRead - buffer where to put characters that have been read throws: java.io.IOException - if an I/O error occurred