public class UnsyncByteArrayInputStream
extends java.io.InputStream
ByteArrayInputStream with unsynchronized methods for greater efficiency.| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected int |
count |
protected int |
mark |
protected int |
pos |
| Constructor and Description |
|---|
UnsyncByteArrayInputStream(byte[] buf) |
UnsyncByteArrayInputStream(byte[] buf, int off, int len) |
protected byte[] buf
protected int pos
protected int mark
protected int count
public UnsyncByteArrayInputStream(byte[] buf)
public UnsyncByteArrayInputStream(byte[] buf,
int off,
int len)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOException
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStreampublic void mark(int readAheadLimit)
mark in class java.io.InputStream
public void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException