public class ByteArrayInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
(package private) byte[] |
buffer |
(package private) int |
limit |
(package private) int |
mark |
(package private) int |
pos |
| Constructor and Description |
|---|
ByteArrayInputStream(Buffer buffer) |
ByteArrayInputStream(byte[] data) |
ByteArrayInputStream(byte[] data,
int offset,
int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
mark(int markpos) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long len) |
public ByteArrayInputStream(byte[] data)
public ByteArrayInputStream(Buffer buffer)
public ByteArrayInputStream(byte[] data,
int offset,
int size)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
read in class java.io.InputStreampublic long skip(long len)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int available()
available in class java.io.InputStreampublic boolean markSupported()
markSupported in class java.io.InputStreampublic void mark(int markpos)
mark in class java.io.InputStreampublic void reset()
reset in class java.io.InputStream