com.ibm.di.parser.xml
Class XMLInputStreamDecoder
java.lang.Object
java.io.Reader
com.ibm.di.parser.xml.XMLInputStreamDecoder
- All Implemented Interfaces:
- Closeable, Readable
public class XMLInputStreamDecoder
- extends Reader
This class checks the provided input stream for a BOM and if it is able to
find it the information this mark carries is interpreted and the encoding is
discovered. If no BOM is found a check for a xml declaration is done. If a
XML exists then it is checked for an encoding attribute. If that attribute is
found its values is taken and the stream is decoded using that encoding. If
none of above is found then the InputStream is decoded using the XMLParser2's
default encoding. If it is set to null then the system default encoding is
used.
- Since:
- 7.0
Method Summary |
void |
close()
|
int |
read()
|
int |
read(char[] cbuf,
int off,
int len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
read
public int read()
throws IOException
-
- Overrides:
read
in class Reader
- Throws:
IOException
close
public void close()
throws IOException
-
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Reader
- Throws:
IOException
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
-
- Specified by:
read
in class Reader
- Throws:
IOException