public class ByteArrayInputStream extends InputStream
Constructor and Description |
---|
ByteArrayInputStream(byte[] data) |
ByteArrayInputStream(byte[] data,
int offset,
int size) |
ByteArrayInputStream(ByteSequence sequence) |
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) |
close
public ByteArrayInputStream(byte[] data)
public ByteArrayInputStream(ByteSequence sequence)
public ByteArrayInputStream(byte[] data, int offset, int size)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len)
read
in class InputStream
public long skip(long len) throws IOException
skip
in class InputStream
IOException
public int available()
available
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public void mark(int markpos)
mark
in class InputStream
public void reset()
reset
in class InputStream
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.