- java.lang.Object
- 
- java.io.Reader
- 
- java.io.InputStreamReader
- 
- org.apache.johnzon.core.RFC4627AwareInputStreamReader
 
 
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.lang.AutoCloseable,- java.lang.Readable
 
 final class RFC4627AwareInputStreamReader extends java.io.InputStreamReader
- 
- 
Constructor SummaryConstructors Modifier Constructor Description (package private)RFC4627AwareInputStreamReader(java.io.InputStream in)privateRFC4627AwareInputStreamReader(java.io.PushbackInputStream in)
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.nio.charset.CharsetgetCharset(java.io.PushbackInputStream inputStream)private static byte[]readAllBytes(java.io.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".
 
- 
- 
- 
Method Detail- 
readAllBytesprivate static byte[] readAllBytes(java.io.PushbackInputStream inputStream) throws java.io.IOExceptionAccording 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:
- java.io.IOException
 
 - 
getCharsetprivate static java.nio.charset.Charset getCharset(java.io.PushbackInputStream inputStream) 
 
- 
 
-