Class ArrayBufferInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class ArrayBufferInputStream
    extends java.io.InputStream
    Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayBufferInputStream​(org.teavm.jso.typedarrays.ArrayBuffer bufferIn)  
      ArrayBufferInputStream​(org.teavm.jso.typedarrays.ArrayBuffer bufferIn, int off, int len)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int available()  
      org.teavm.jso.typedarrays.ArrayBuffer getBuffer()  
      int getLimit()  
      int getPosition()  
      int read()  
      int read​(byte[] b, int off, int len)  
      long skip​(long n)  
      • Methods inherited from class java.io.InputStream

        close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArrayBufferInputStream

        public ArrayBufferInputStream​(org.teavm.jso.typedarrays.ArrayBuffer bufferIn)
      • ArrayBufferInputStream

        public ArrayBufferInputStream​(org.teavm.jso.typedarrays.ArrayBuffer bufferIn,
                                      int off,
                                      int len)
    • Method Detail

      • read

        public int read()
        Specified by:
        read in class java.io.InputStream
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
        Overrides:
        read in class java.io.InputStream
      • skip

        public long skip​(long n)
        Overrides:
        skip in class java.io.InputStream
      • available

        public int available()
        Overrides:
        available in class java.io.InputStream
      • getPosition

        public int getPosition()
      • getLimit

        public int getLimit()
      • getBuffer

        public org.teavm.jso.typedarrays.ArrayBuffer getBuffer()