public class ByteArrayInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected int |
count |
protected int |
mark |
protected int |
pos |
| Constructor and Description |
|---|
ByteArrayInputStream(byte[] buf) |
ByteArrayInputStream(byte[] buf,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
readprotected byte[] buf
protected int count
protected int mark
protected int pos
public ByteArrayInputStream(byte[] buf)
public ByteArrayInputStream(byte[] buf,
int offset,
int length)
public int available()
available in class InputStreampublic void close()
throws IOException
close in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readAheadLimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
read in class InputStreampublic int read(byte[] b,
int off,
int len)
read in class InputStreampublic void reset()
reset in class InputStreampublic long skip(long n)
skip in class InputStreamCopyright © 2026. All rights reserved.