| java.lang.Object java.io.Reader com.bluecast.xml.XMLInputReader com.bluecast.xml.XMLStreamReader
XMLStreamReader | final public class XMLStreamReader extends XMLInputReader (Code) | | A Reader for XML documents and streams. This class automatically determines
the proper character set to use based on Byte Order Marks and XML
declarations.
author: Yuval Oren, yuval@bluecast.com version: $Revision: 1.7 $ |
Constructor Summary | |
public | XMLStreamReader() Create an XMLStreamReader without providing an InputStream yet. | public | XMLStreamReader(InputStream in, boolean rewindDeclaration) Creates an XMLStreamReader.
Parameters: in - the InputStream Parameters: rewindDeclaration - a value of false will skip past anyXML declaration. | public | XMLStreamReader(InputStream in, String encoding, boolean rewindDeclaration) Creates an XMLStreamReader while specifying a character encoding. |
Method Summary | |
public void | close() | public String | getEncoding() Returns the character set being used by the reader. | public void | mark(int readAheadLimit) | public boolean | markSupported() | public int | read() | public int | read(char[] destbuf) | public int | read(char[] destbuf, int off, int len) | public boolean | ready() | public void | reset(InputStream in, String encoding, boolean rewindDeclaration) Reuses this XMLStreamReader for a different InputStream. | public void | reset() | public long | skip(long n) |
XMLStreamReader | public XMLStreamReader()(Code) | | Create an XMLStreamReader without providing an InputStream yet.
You must call reset() before using.
|
XMLStreamReader | public XMLStreamReader(InputStream in, boolean rewindDeclaration) throws IOException(Code) | | Creates an XMLStreamReader.
Parameters: in - the InputStream Parameters: rewindDeclaration - a value of false will skip past anyXML declaration. True will dish out the entire document. |
XMLStreamReader | public XMLStreamReader(InputStream in, String encoding, boolean rewindDeclaration) throws IOException(Code) | | Creates an XMLStreamReader while specifying a character encoding.
|
getEncoding | public String getEncoding()(Code) | | Returns the character set being used by the reader. Note that the
encoding in the XML declaration is ignored if it is not needed to
determine the character set.
|
markSupported | public boolean markSupported()(Code) | | |
|
|