java.lang.Objectjava.io.Reader
javax.baja.xml.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, 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
| 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
java.io.IOException
public int read(char[] buf,
int off,
int len)
throws java.io.IOException
java.io.IOException
public int read(char[] buf)
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2000-2014 Tridium Inc. All rights reserved.