@Environment(value=CLIENT) static class PngFile.ChannelReader extends PngFile.Reader
Modifier and Type | Field and Description |
---|---|
private long |
buffer |
private int |
bufferPosition |
private int |
bufferSize |
private ReadableByteChannel |
channel |
private int |
readPosition |
errored
Modifier | Constructor and Description |
---|---|
private |
ChannelReader(ReadableByteChannel readableByteChannel) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read(long data,
int size) |
private void |
readToBuffer(int size) |
void |
skip(int n) |
eof, read, skip
private final ReadableByteChannel channel
private long buffer
private int bufferSize
private int bufferPosition
private int readPosition
private ChannelReader(ReadableByteChannel readableByteChannel)
private void readToBuffer(int size) throws IOException
IOException
public int read(long data, int size) throws IOException
read
in class PngFile.Reader
IOException
public void skip(int n) throws IOException
skip
in class PngFile.Reader
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in class PngFile.Reader
IOException