public class SeekableByteArrayInputStream extends InputStream
Constructor and Description |
---|
SeekableByteArrayInputStream(byte[] buf) |
SeekableByteArrayInputStream(byte[] buf,
int maxOffset) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
int |
getPosition() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int offset,
int length) |
void |
reset() |
void |
seek(int position) |
long |
skip(long requestedSkip) |
read
public SeekableByteArrayInputStream(byte[] buf)
public SeekableByteArrayInputStream(byte[] buf, int maxOffset)
public int read()
read
in class InputStream
public int read(byte[] b, int offset, int length)
read
in class InputStream
public long skip(long requestedSkip)
skip
in class InputStream
public int available()
available
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public void mark(int readAheadLimit)
mark
in class InputStream
public void reset()
reset
in class InputStream
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public void seek(int position)
public int getPosition()
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.