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
@Nullable 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.Reader
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
java.io.IOException