Package org.teiid.core.util
Class InputStreamReader
- java.lang.Object
-
- java.io.Reader
-
- org.teiid.core.util.InputStreamReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class InputStreamReader extends Reader
Replacement for the standardInputStreamReader, which suffers from a bug in sun.nio.cs.StreamDecoder
-
-
Constructor Summary
Constructors Constructor Description InputStreamReader(InputStream in, CharsetDecoder cd)InputStreamReader(InputStream in, CharsetDecoder cd, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread(char[] cbuf, int off, int len)-
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, read, ready, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
InputStreamReader
public InputStreamReader(InputStream in, CharsetDecoder cd)
-
InputStreamReader
public InputStreamReader(InputStream in, CharsetDecoder cd, int bufferSize)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException- Specified by:
readin classReader- Throws:
IOException
-
-