|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.sqlite.io.BlobInputStream
public class BlobInputStream
Constructor Summary | |
---|---|
BlobInputStream(JdbcBlob owner,
SWIGTYPE_p_void blob,
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. |
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 BlobInputStream(JdbcBlob owner, SWIGTYPE_p_void blob, long len)
owner
- owner JdbcBlob objectblob
- pointer of BLOB objectlen
- the number of bytesMethod Detail |
---|
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
- When this method is called on a closed stream.public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
- IOException is not generated.public void mark(int readlimit)
mark
in class java.io.InputStream
readlimit
- ignoredpublic boolean markSupported()
markSupported
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.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.InputStream
b
- 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.InputStream
b
- 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.InputStream
java.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.InputStream
n
- the number of bytes to be skipped.
java.io.IOException
- When this method is called on a closed stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |