java.lang.Object
java.io.Reader
java.io.InputStreamReader
org.apache.johnzon.core.RFC4627AwareInputStreamReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescription(package private)private -
Method Summary
Modifier and TypeMethodDescriptionprivate 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.InputStreamReader
close, getEncoding, read, read, readyMethods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, reset, skip, transferTo
-
Constructor Details
-
RFC4627AwareInputStreamReader
RFC4627AwareInputStreamReader(InputStream in) -
RFC4627AwareInputStreamReader
-
-
Method Details
-
readAllBytes
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
-
getCharset
-