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 void
close()
int
read(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException
- Specified by:
read
in classReader
- Throws:
IOException
-
-