static final class ResponseBody.BomAwareReader
extends java.io.Reader
| Modifier and Type | Field and Description |
|---|---|
private java.nio.charset.Charset |
charset |
private boolean |
closed |
private java.io.Reader |
delegate |
private okio.BufferedSource |
source |
| Constructor and Description |
|---|
BomAwareReader(okio.BufferedSource source,
java.nio.charset.Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read(char[] cbuf,
int off,
int len) |
private final okio.BufferedSource source
private final java.nio.charset.Charset charset
private boolean closed
private java.io.Reader delegate
BomAwareReader(okio.BufferedSource source,
java.nio.charset.Charset charset)
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOException