Package net.sf.okapi.common
Class XmlInputStreamReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.InputStreamReader
-
- net.sf.okapi.common.XmlInputStreamReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class XmlInputStreamReader extends InputStreamReader
-
-
Constructor Summary
Constructors Constructor Description XmlInputStreamReader(InputStream in)XmlInputStreamReader(InputStream in, String charsetName)XmlInputStreamReader(InputStream in, Charset cs)XmlInputStreamReader(InputStream in, CharsetDecoder dec)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()intread(char[] cbuf, int offset, int length)static net.sf.okapi.common.XmlInputStreamReader.EntityresolveEntity(char[] buf, int ptr, int size)-
Methods inherited from class java.io.InputStreamReader
close, getEncoding, ready
-
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
XmlInputStreamReader
public XmlInputStreamReader(InputStream in)
-
XmlInputStreamReader
public XmlInputStreamReader(InputStream in, String charsetName) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
XmlInputStreamReader
public XmlInputStreamReader(InputStream in, Charset cs)
-
XmlInputStreamReader
public XmlInputStreamReader(InputStream in, CharsetDecoder dec)
-
-
Method Detail
-
read
public int read() throws IOException- Overrides:
readin classInputStreamReader- Throws:
IOException
-
read
public int read(char[] cbuf, int offset, int length) throws IOException- Overrides:
readin classInputStreamReader- Throws:
IOException
-
resolveEntity
public static net.sf.okapi.common.XmlInputStreamReader.Entity resolveEntity(char[] buf, int ptr, int size)
-
-