class BlobR
extends java.io.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 java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int limit)
mark in class java.io.InputStreampublic boolean markSupported()
markSupported in class java.io.InputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamb - byte array to be filledjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamb - byte array to be filledoff - offset into byte arraylen - length to be readjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionContact: Christian Werner