Package net.minecraft.client.util
Class PngFile.ChannelReader
java.lang.Object
net.minecraft.client.util.PngFile.Reader
net.minecraft.client.util.PngFile.ChannelReader
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- PngFile
@Environment(CLIENT) static class PngFile.ChannelReader extends PngFile.Reader
-
Field Summary
Fields Modifier and Type Field Description private long
buffer
private int
bufferPosition
private int
bufferSize
private ReadableByteChannel
channel
private int
readPosition
Fields inherited from class net.minecraft.client.util.PngFile.Reader
errored
-
Constructor Summary
Constructors Modifier Constructor Description private
ChannelReader(ReadableByteChannel readableByteChannel)
-
Method Summary
Modifier and Type Method Description void
close()
int
read(long data, int size)
private void
readToBuffer(int size)
void
skip(int n)
Methods inherited from class net.minecraft.client.util.PngFile.Reader
eof, read, skip
-
Field Details
-
channel
-
buffer
private long buffer -
bufferSize
private int bufferSize -
bufferPosition
private int bufferPosition -
readPosition
private int readPosition
-
-
Constructor Details
-
ChannelReader
-
-
Method Details
-
readToBuffer
- Throws:
IOException
-
read
- Specified by:
read
in classPngFile.Reader
- Throws:
IOException
-
skip
- Specified by:
skip
in classPngFile.Reader
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classPngFile.Reader
- Throws:
IOException
-