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
named net/minecraft/util/FixedBufferInputStream
intermediary net/minecraft/class_6826
official azo
  • Field Details

    • DEFAULT_BUFFER_SIZE

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

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

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

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

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

    • FixedBufferInputStream

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

      public FixedBufferInputStream(InputStream stream, int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/FixedBufferInputStream;<init>(Ljava/io/InputStream;I)V
      intermediary <init> Lnet/minecraft/class_6826;<init>(Ljava/io/InputStream;I)V
      official <init> Lazo;<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
      named read Lnet/minecraft/util/FixedBufferInputStream;read([BII)I
      intermediary read Lnet/minecraft/class_6826;read([BII)I
      official read Lazo;read([BII)I
    • skip

      public long skip(long n) throws IOException
      Overrides:
      skip in class InputStream
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named skip Lnet/minecraft/util/FixedBufferInputStream;skip(J)J
      intermediary skip Lnet/minecraft/class_6826;skip(J)J
      official skip Lazo;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
      named getAvailableBuffer Lnet/minecraft/util/FixedBufferInputStream;getAvailableBuffer()I
      intermediary method_39779 Lnet/minecraft/class_6826;method_39779()I
      official a Lazo;a()I
    • fill

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