@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() |
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 |
setBuffer(byte[] buffer,
int offset,
int length) |
void |
setPosition(int pos) |
long |
skip(long toSkip) |
readprotected byte[] buffer
protected int position
protected int count
protected int mark
public ByteArrayInputStreamWithPos()
public ByteArrayInputStreamWithPos(byte[] buffer)
public ByteArrayInputStreamWithPos(byte[] buffer,
int offset,
int length)
public int read()
read in class InputStreampublic int read(byte[] b,
int off,
int len)
read in class InputStreampublic long skip(long toSkip)
skip in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic void mark(int readAheadLimit)
mark in class InputStreampublic void reset()
reset in class InputStreampublic int available()
available in class InputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int getPosition()
public void setPosition(int pos)
public void setBuffer(byte[] buffer,
int offset,
int length)
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.