class BlobR extends InputStream
| Modifier and Type | Field and Description |
|---|---|
private Blob |
blob
Blob instance
|
private int |
pos
Read position, file pointer.
|
| Constructor and Description |
|---|
BlobR(Blob blob)
Contruct InputStream from blob instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Return number of available bytes for reading.
|
void |
close()
Close this blob InputStream.
|
void |
mark(int limit)
Mark method; dummy to satisfy InputStream class.
|
boolean |
markSupported()
Mark support; not for this class.
|
int |
read()
Read single byte from blob.
|
int |
read(byte[] b)
Read byte array from blob.
|
int |
read(byte[] b,
int off,
int len)
Read slice of byte array from blob.
|
void |
reset()
Reset method; dummy to satisfy InputStream class.
|
long |
skip(long n)
Skip over blob data.
|
private Blob blob
private int pos
BlobR(Blob blob)
public int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int limit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamb - byte array to be filledIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamb - byte array to be filledoff - offset into byte arraylen - length to be readIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionContact: Christian Werner