public final class FastByteArrayInputStream extends InputStream
ByteArrayInputStream| Constructor and Description |
|---|
FastByteArrayInputStream(byte[] buf) |
FastByteArrayInputStream(byte[] buf,
int count)
Special constructor fo creating InputStream over not fully filled array
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
byte[] |
getBuf() |
int |
getCount() |
byte[] |
getData() |
int |
getPos() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
mark, readpublic FastByteArrayInputStream(byte[] buf)
public FastByteArrayInputStream(byte[] buf,
int count)
buf - byte arraycount - number of filled elementspublic int read()
read in class InputStreampublic int read(byte[] b,
int off,
int len)
read in class InputStreampublic long skip(long n)
skip in class InputStreampublic int available()
available in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int getPos()
public int getCount()
public byte[] getBuf()
public byte[] getData()
public void reset()
reset in class InputStreamCopyright © 2020. All rights reserved.