Package org.apache.johnzon.core
Class RFC4627AwareInputStreamReader
- java.lang.Object
- 
- java.io.Reader
- 
- java.io.InputStreamReader
- 
- org.apache.johnzon.core.RFC4627AwareInputStreamReader
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Readable
 
 final class RFC4627AwareInputStreamReader extends InputStreamReader 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description (package private)RFC4627AwareInputStreamReader(InputStream in)privateRFC4627AwareInputStreamReader(PushbackInputStream in)
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description private static CharsetgetCharset(PushbackInputStream inputStream)private static byte[]readAllBytes(PushbackInputStream inputStream)According to the Java API "An attempt is made to read as many as len bytes, but a smaller number may be read".- 
Methods inherited from class java.io.InputStreamReaderclose, getEncoding, read, read, ready
 - 
Methods inherited from class java.io.Readermark, markSupported, nullReader, read, read, reset, skip, transferTo
 
- 
 
- 
- 
- 
Constructor Detail- 
RFC4627AwareInputStreamReaderRFC4627AwareInputStreamReader(InputStream in) 
 - 
RFC4627AwareInputStreamReaderprivate RFC4627AwareInputStreamReader(PushbackInputStream in) 
 
- 
 - 
Method Detail- 
readAllBytesprivate static byte[] readAllBytes(PushbackInputStream inputStream) throws IOException According to the Java API "An attempt is made to read as many as len bytes, but a smaller number may be read". [http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html#read(byte[],%20int,%20int)] For this reason we need to ensure that we've read all the bytes that we need out of this stream.- Throws:
- IOException
 
 - 
getCharsetprivate static Charset getCharset(PushbackInputStream inputStream) 
 
- 
 
-