|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.Reader
|
+--com.bluecast.xml.XMLInputReader
|
+--com.bluecast.xml.XMLStreamReader
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.
| Field Summary |
| Fields inherited from class java.io.Reader |
lock |
| Constructor Summary | |
XMLStreamReader()
Create an XMLStreamReader without providing an InputStream yet. |
|
XMLStreamReader(java.io.InputStream in,
boolean rewindDeclaration)
Creates an XMLStreamReader. |
|
XMLStreamReader(java.io.InputStream in,
java.lang.String encoding,
boolean rewindDeclaration)
Creates an XMLStreamReader while specifying a character encoding. |
|
| Method Summary | |
void |
close()
|
java.lang.String |
getEncoding()
Returns the character set being used by the reader. |
void |
mark(int readAheadLimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(char[] destbuf)
|
int |
read(char[] destbuf,
int off,
int len)
|
boolean |
ready()
|
void |
reset()
|
void |
reset(java.io.InputStream in,
java.lang.String encoding,
boolean rewindDeclaration)
Reuses this XMLStreamReader for a different InputStream. |
long |
skip(long n)
|
| Methods inherited from class com.bluecast.xml.XMLInputReader |
getXMLDeclaredEncoding, getXMLVersion, isXMLStandalone, isXMLStandaloneDeclared, parseXMLDeclaration, resetInput |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLStreamReader()
public XMLStreamReader(java.io.InputStream in,
boolean rewindDeclaration)
throws java.io.IOException
in - the InputStreamrewindDeclaration - a value of false will skip past any
XML declaration. True will dish out the entire document.
public XMLStreamReader(java.io.InputStream in,
java.lang.String encoding,
boolean rewindDeclaration)
throws java.io.IOException
| Method Detail |
public void reset(java.io.InputStream in,
java.lang.String encoding,
boolean rewindDeclaration)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getEncoding()
public void close()
throws java.io.IOException
close in class java.io.Readerjava.io.IOException
public void mark(int readAheadLimit)
throws java.io.IOException
mark in class java.io.Readerjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.Reader
public int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOException
public int read(char[] destbuf)
throws java.io.IOException
read in class java.io.Readerjava.io.IOException
public int read(char[] destbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOException
public boolean ready()
throws java.io.IOException
ready in class java.io.Readerjava.io.IOException
public void reset()
throws java.io.IOException
reset in class java.io.Readerjava.io.IOException
public long skip(long n)
throws java.io.IOException
skip in class java.io.Readerjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||