Class FixedBufferInputStream

java.lang.Object
java.io.InputStream
net.minecraft.util.FixedBufferInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class FixedBufferInputStream extends InputStream
A buffered input stream that uses a fixed-size buffer array.
Mappings:
Namespace Name
official aoh
intermediary net/minecraft/class_6826
named net/minecraft/util/FixedBufferInputStream
  • Field Details

    • DEFAULT_BUFFER_SIZE

      private static final int DEFAULT_BUFFER_SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Laoh;a:I
      intermediary field_36209 Lnet/minecraft/class_6826;field_36209:I
      named DEFAULT_BUFFER_SIZE Lnet/minecraft/util/FixedBufferInputStream;DEFAULT_BUFFER_SIZE:I
    • stream

      private final InputStream stream
      Mappings:
      Namespace Name Mixin selector
      official b Laoh;b:Ljava/io/InputStream;
      intermediary field_36210 Lnet/minecraft/class_6826;field_36210:Ljava/io/InputStream;
      named stream Lnet/minecraft/util/FixedBufferInputStream;stream:Ljava/io/InputStream;
    • buf

      private final byte[] buf
      Mappings:
      Namespace Name Mixin selector
      official c Laoh;c:[B
      intermediary field_36211 Lnet/minecraft/class_6826;field_36211:[B
      named buf Lnet/minecraft/util/FixedBufferInputStream;buf:[B
    • end

      private int end
      Mappings:
      Namespace Name Mixin selector
      official d Laoh;d:I
      intermediary field_36212 Lnet/minecraft/class_6826;field_36212:I
      named end Lnet/minecraft/util/FixedBufferInputStream;end:I
    • start

      private int start
      Mappings:
      Namespace Name Mixin selector
      official e Laoh;e:I
      intermediary field_36213 Lnet/minecraft/class_6826;field_36213:I
      named start Lnet/minecraft/util/FixedBufferInputStream;start:I
  • Constructor Details

    • FixedBufferInputStream

      public FixedBufferInputStream(InputStream stream)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laoh;<init>(Ljava/io/InputStream;)V
      intermediary <init> Lnet/minecraft/class_6826;<init>(Ljava/io/InputStream;)V
      named <init> Lnet/minecraft/util/FixedBufferInputStream;<init>(Ljava/io/InputStream;)V
    • FixedBufferInputStream

      public FixedBufferInputStream(InputStream stream, int size)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laoh;<init>(Ljava/io/InputStream;I)V
      intermediary <init> Lnet/minecraft/class_6826;<init>(Ljava/io/InputStream;I)V
      named <init> Lnet/minecraft/util/FixedBufferInputStream;<init>(Ljava/io/InputStream;I)V
  • Method Details

    • read

      public int read() throws IOException
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • read

      public int read(byte[] buf, int offset, int length) throws IOException
      Overrides:
      read in class InputStream
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official read Laoh;read([BII)I
      intermediary read Lnet/minecraft/class_6826;read([BII)I
      named read Lnet/minecraft/util/FixedBufferInputStream;read([BII)I
    • skip

      public long skip(long n) throws IOException
      Overrides:
      skip in class InputStream
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official skip Laoh;skip(J)J
      intermediary skip Lnet/minecraft/class_6826;skip(J)J
      named skip Lnet/minecraft/util/FixedBufferInputStream;skip(J)J
    • available

      public int available() throws IOException
      Overrides:
      available in class InputStream
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream
      Throws:
      IOException
    • getAvailableBuffer

      private int getAvailableBuffer()
      Mappings:
      Namespace Name Mixin selector
      official a Laoh;a()I
      intermediary method_39779 Lnet/minecraft/class_6826;method_39779()I
      named getAvailableBuffer Lnet/minecraft/util/FixedBufferInputStream;getAvailableBuffer()I
    • fill

      private void fill() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Laoh;b()V
      intermediary method_39780 Lnet/minecraft/class_6826;method_39780()V
      named fill Lnet/minecraft/util/FixedBufferInputStream;fill()V