Package com.runemate.game.cache.util
Class OpenByteArrayInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.ByteArrayInputStream
-
- com.runemate.game.cache.util.OpenByteArrayInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class OpenByteArrayInputStream extends java.io.ByteArrayInputStream
-
-
Constructor Summary
Constructors Constructor Description OpenByteArrayInputStream(byte[] buf)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte[]
getBackingArray()
byte[]
getCopyOfBackingArray()
byte
peak()
Deprecated.byte
peek()
Reads a byteint
position()
void
position(int position)
int
size()
-
-
-
Method Detail
-
size
public int size()
-
position
public int position()
-
position
public void position(int position)
-
peek
public byte peek() throws java.io.EOFException
Reads a byte- Throws:
java.io.EOFException
-
peak
@Deprecated public byte peak() throws java.io.EOFException
Deprecated.- Throws:
java.io.EOFException
-
getBackingArray
public byte[] getBackingArray()
-
getCopyOfBackingArray
public byte[] getCopyOfBackingArray()
-
-