|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.postgresql.pljava.jdbc.BlobValue
public class BlobValue
| Constructor Summary | |
|---|---|
BlobValue(byte[] bytes)
|
|
BlobValue(InputStream stream,
long nBytes)
|
|
| Method Summary | |
|---|---|
int |
available()
|
InputStream |
getBinaryStream()
|
byte[] |
getBytes(long pos,
int length)
|
void |
getContents(ByteBuffer buf)
Called from within... |
static int |
getStreamLength(InputStream value)
|
long |
length()
|
void |
mark(int readLimit)
|
boolean |
markSupported()
|
long |
position(Blob pattern,
long start)
Not supported. |
long |
position(byte[] pattern,
long start)
Not supported. |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
OutputStream |
setBinaryStream(long pos)
In this method is not supported by BlobValue |
int |
setBytes(long pos,
byte[] bytes)
In this method is not supported by BlobValue |
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len)
In this method is not supported by BlobValue |
long |
skip(long nBytes)
|
void |
truncate(long len)
In this method is not supported by BlobValue |
| Methods inherited from class java.io.InputStream |
|---|
close |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlobValue(byte[] bytes)
public BlobValue(InputStream stream,
long nBytes)
| Method Detail |
|---|
public static int getStreamLength(InputStream value)
throws SQLException
SQLException
public int available()
throws IOException
available in class InputStreamIOExceptionpublic InputStream getBinaryStream()
getBinaryStream in interface Blob
public byte[] getBytes(long pos,
int length)
throws SQLException
getBytes in interface BlobSQLException
public void getContents(ByteBuffer buf)
throws IOException
buf - a buffer that reflects the internally allocated bytea buffer.
This size of this buffer will be exactly the size returned by a call to
length().
IOExceptionpublic long length()
length in interface Blobpublic void mark(int readLimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStream
public long position(Blob pattern,
long start)
position in interface Blob
public long position(byte[] pattern,
long start)
position in interface Blob
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] b)
throws IOException
read in class InputStreamIOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOException
public void reset()
throws IOException
reset in class InputStreamIOExceptionpublic OutputStream setBinaryStream(long pos)
BlobValue
setBinaryStream in interface Blob
public int setBytes(long pos,
byte[] bytes)
BlobValue
setBytes in interface Blob
public int setBytes(long pos,
byte[] bytes,
int offset,
int len)
BlobValue
setBytes in interface Blob
public long skip(long nBytes)
throws IOException
skip in class InputStreamIOExceptionpublic void truncate(long len)
BlobValue
truncate in interface Blob
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||