|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
uxparser.XInputStreamReader
public class XInputStreamReader
XInputStreamRead is used to read a XML byte stream into a stream of unicode characters. Mapping the byte stream into a charset encoding is implemented according XML 1.0 Appendix F - Autodetection of Character Encodings. XInputStream also automatically handles reading a PKZIP zipped XML. Character encodings supported:
| Field Summary |
|---|
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
XInputStreamReader(java.io.InputStream in)
Construct writer for specified file. |
|
| Method Summary | |
|---|---|
void |
close()
Close the underlying input stream. |
java.lang.String |
getEncoding()
Get the character encoding being used. |
boolean |
isZipped()
Return if the stream was zipped. |
static void |
main(java.lang.String[] args)
|
int |
read()
Read one character. |
int |
read(char[] buf)
Read a block of characters into the specified buffer. |
int |
read(char[] buf,
int off,
int len)
Read a block of characters into the specified buffer. |
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, ready, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XInputStreamReader(java.io.InputStream in)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String getEncoding()
throws java.io.IOException
java.io.IOException
public boolean isZipped()
throws java.io.IOException
java.io.IOException
public int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOException
public int read(char[] buf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOException
public int read(char[] buf)
throws java.io.IOException
read in class java.io.Readerjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.Readerjava.io.IOException
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||