Package net.lax1dude.eaglercraft.v1_8
Class EaglerInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.ByteArrayInputStream
-
- net.lax1dude.eaglercraft.v1_8.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)
-
-
Constructor Summary
Constructors Constructor Description EaglerInputStream(byte[] buf)
EaglerInputStream(byte[] buf, int off, int len)
-
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)
-
-
-
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()
-
-