Class EaglerInputStream

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

    public class EaglerInputStream
    extends java.io.ByteArrayInputStream
    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)
    • Field Summary

      • Fields inherited from class java.io.ByteArrayInputStream

        buf, count, mark, pos
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canUseArrayDirectly()  
      byte[] getAsArray()  
      int getCount()  
      int getMark()  
      int getPosition()  
      static byte[] inputStreamToBytes​(java.io.InputStream is)  
      static byte[] inputStreamToBytesQuiet​(java.io.InputStream is)  
      • Methods inherited from class java.io.ByteArrayInputStream

        available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.io.InputStream

        nullInputStream, read, readNBytes
      • Methods inherited from class java.lang.Object

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

      • EaglerInputStream

        public EaglerInputStream​(byte[] buf)
      • EaglerInputStream

        public EaglerInputStream​(byte[] buf,
                                 int off,
                                 int len)
    • Method Detail

      • inputStreamToBytesQuiet

        public static byte[] inputStreamToBytesQuiet​(java.io.InputStream is)
      • inputStreamToBytes

        public static byte[] inputStreamToBytes​(java.io.InputStream is)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getAsArray

        public byte[] getAsArray()
      • canUseArrayDirectly

        public boolean canUseArrayDirectly()
      • getPosition

        public int getPosition()
      • getMark

        public int getMark()
      • getCount

        public int getCount()