final class RFC4627AwareInputStreamReader extends InputStreamReader
| Modifier | Constructor and Description | 
|---|---|
| (package private) | RFC4627AwareInputStreamReader(InputStream in,
                             Charset preferredCharset) | 
| private  | RFC4627AwareInputStreamReader(PushbackInputStream in,
                             Charset preferredCharset) | 
| Modifier and Type | Method and Description | 
|---|---|
| private static Charset | getCharset(PushbackInputStream inputStream,
          Charset preferredCharset) | 
| 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". | 
close, getEncoding, read, read, readyRFC4627AwareInputStreamReader(InputStream in, Charset preferredCharset)
preferredCharset - the Charset to use if no BOM is used. If null use UTF-8private RFC4627AwareInputStreamReader(PushbackInputStream in, Charset preferredCharset)
private static byte[] readAllBytes(PushbackInputStream inputStream) throws IOException
IOExceptionprivate static Charset getCharset(PushbackInputStream inputStream, Charset preferredCharset)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.