@Internal public class ByteArrayInputStreamWithPos extends InputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected int |
count |
protected int |
mark |
protected int |
position |
Constructor and Description |
---|
ByteArrayInputStreamWithPos(byte[] buffer) |
ByteArrayInputStreamWithPos(byte[] buffer,
int offset,
int length) |
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 off,
int len) |
void |
reset() |
void |
setPosition(int pos) |
long |
skip(long toSkip) |
read
protected byte[] buffer
protected int position
protected int count
protected int mark
public ByteArrayInputStreamWithPos(byte[] buffer)
public ByteArrayInputStreamWithPos(byte[] buffer, int offset, int length)
public int read()
read
in class InputStream
public int read(byte[] b, int off, int len)
read
in class InputStream
public long skip(long toSkip)
skip
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 int available()
available
in class InputStream
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public int getPosition()
public void setPosition(int pos)
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.