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, read
public FastByteArrayInputStream(byte[] buf)
public FastByteArrayInputStream(byte[] buf, int count)
buf
- byte arraycount
- number of filled elementspublic int read()
read
in class InputStream
public int read(byte[] b, int off, int len)
read
in class InputStream
public long skip(long n)
skip
in class InputStream
public int available()
available
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public int getPos()
public int getCount()
public byte[] getBuf()
public byte[] getData()
public void reset()
reset
in class InputStream
Copyright © 2018. All rights reserved.