org.teiid.core.util
Class InputStreamReader
java.lang.Object
java.io.Reader
org.teiid.core.util.InputStreamReader
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable
public class InputStreamReader
- extends java.io.Reader
Replacement for the standard InputStreamReader
,
which suffers from a bug in sun.nio.cs.StreamDecoder
Fields inherited from class java.io.Reader |
lock |
Constructor Summary |
InputStreamReader(java.io.InputStream in,
java.nio.charset.CharsetDecoder cd)
|
InputStreamReader(java.io.InputStream in,
java.nio.charset.CharsetDecoder cd,
int bufferSize)
|
Method Summary |
void |
close()
|
int |
read(char[] cbuf,
int off,
int len)
|
Methods inherited from class java.io.Reader |
mark, markSupported, read, read, read, ready, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamReader
public InputStreamReader(java.io.InputStream in,
java.nio.charset.CharsetDecoder cd)
InputStreamReader
public InputStreamReader(java.io.InputStream in,
java.nio.charset.CharsetDecoder cd,
int bufferSize)
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in class java.io.Reader
- Throws:
java.io.IOException
read
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Specified by:
read
in class java.io.Reader
- Throws:
java.io.IOException
Copyright © 2010. All Rights Reserved.