class ByteArray.InternalInputStream
extends java.io.InputStream
Constructor and Description |
---|
ByteArray.InternalInputStream() |
Modifier and Type | Method and Description |
---|---|
int |
available()
Number of left byte to read
Parent documentation: |
void |
close()
Close the stream
Parent documentation: |
void |
mark(int readlimit)
Mark actual read position
Parent documentation: |
boolean |
markSupported()
Indicates if mark are supported
Parent documentation: |
int |
read()
Read newt byte
Parent documentation: |
int |
read(byte[] b)
Read some bytes and fill an array.
|
int |
read(byte[] b,
int off,
int len)
Read some bytes and fill an array.
|
void |
reset()
Reset the mark
Parent documentation: |
long |
skip(long n)
Skip a number of bytes
Parent documentation: |
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
- On reading issueInputStream.available()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
- On closing issueInputStream.close()
public void mark(int readlimit)
mark
in class java.io.InputStream
readlimit
- Maximum limitInputStream.mark(int)
public boolean markSupported()
markSupported
in class java.io.InputStream
true
InputStream.markSupported()
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- On reading issueInputStream.read()
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
b
- Array to filljava.io.IOException
- On reading issueInputStream.read(byte[])
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
b
- Array to filloff
- Offset where start filling the arraylen
- Number maximum of byte to readjava.io.IOException
- On reading issueInputStream.read(byte[], int, int)
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
- On access issueInputStream.reset()
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
n
- Number of bytes to skipjava.io.IOException
- On skipping issueInputStream.skip(long)