|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.sqlite.io.InputStreamAdapter
public abstract class InputStreamAdapter
| Constructor Summary | |
|---|---|
InputStreamAdapter(Closeable owner,
long len)
default constructor. |
|
| Method Summary | |
|---|---|
int |
available()
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. |
void |
close()
Closes this stream. |
void |
mark(int readlimit)
Marks the current position in this input stream. Note: The readlimit for this class has no meaning. |
boolean |
markSupported()
mark() supported. |
int |
read()
Reads the next byte of data from the input stream. |
int |
read(byte[] b)
Reads some number of bytes from the input stream and stores them into the buffer array b. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from the input stream into an array of bytes. |
protected abstract void |
read(long pos,
byte[] b,
int off,
int len)
|
void |
reset()
Repositions this stream to the position at the time the mark method was last called on this input stream. |
long |
skip(long n)
Skips over and discards n bytes of data from this input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputStreamAdapter(Closeable owner,
long len)
owner - the owner Closeable objectlen - the number of bytes| Method Detail |
|---|
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOException - When this method is called on a closed stream.public void close()
close in interface java.io.Closeableclose in class java.io.InputStreampublic void mark(int readlimit)
mark in class java.io.InputStreamreadlimit - ignoredpublic boolean markSupported()
markSupported in class java.io.InputStream
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - When this method is called on a closed stream.
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamb - the buffer into which the data is read.
java.io.IOException - When this method is called on a closed stream.
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamb - the buffer into which the data is read.off - the start offset in array b at which the data is written.len - the maximum number of bytes to read.
java.io.IOException - When this method is called on a closed stream.
public void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOException - When this method is called on a closed stream.
public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamn - the number of bytes to be skipped.
java.io.IOException - When this method is called on a closed stream.
protected abstract void read(long pos,
byte[] b,
int off,
int len)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||