Class PngFile.Reader

java.lang.Object
net.minecraft.client.util.PngFile.Reader
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
PngFile.ChannelReader, PngFile.SeekableChannelReader
Enclosing class:
PngFile

@Environment(CLIENT)
abstract static class PngFile.Reader
extends Object
implements AutoCloseable
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected boolean errored  
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private Reader()  
  • Method Summary

    Modifier and Type Method Description
    abstract void close()  
    (package private) int eof​(long user)  
    protected abstract int read​(long data, int size)  
    (package private) int read​(long user, long data, int size)  
    protected abstract void skip​(int n)  
    (package private) void skip​(long user, int n)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • errored

      protected boolean errored
  • Constructor Details

    • Reader

      private Reader()
  • Method Details

    • read

      int read​(long user, long data, int size)
    • skip

      void skip​(long user, int n)
    • eof

      int eof​(long user)
    • read

      protected abstract int read​(long data, int size) throws IOException
      Throws:
      IOException
    • skip

      protected abstract void skip​(int n) throws IOException
      Throws:
      IOException
    • close

      public abstract void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException