|
|||||||||
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(java.io.InputStream stream,
long nBytes)
|
Method Summary | |
---|---|
int |
available()
|
void |
free()
|
java.io.InputStream |
getBinaryStream()
|
java.io.InputStream |
getBinaryStream(long pos,
long length)
|
byte[] |
getBytes(long pos,
int length)
|
void |
getContents(java.nio.ByteBuffer buf)
Called from within... |
static int |
getStreamLength(java.io.InputStream value)
|
long |
length()
|
void |
mark(int readLimit)
|
boolean |
markSupported()
|
long |
position(java.sql.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()
|
java.io.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(java.io.InputStream stream, long nBytes)
Method Detail |
---|
public static int getStreamLength(java.io.InputStream value) throws java.sql.SQLException
java.sql.SQLException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public java.io.InputStream getBinaryStream()
getBinaryStream
in interface java.sql.Blob
public byte[] getBytes(long pos, int length) throws java.sql.SQLException
getBytes
in interface java.sql.Blob
java.sql.SQLException
public void getContents(java.nio.ByteBuffer buf) throws java.io.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()
.
java.io.IOException
public long length()
length
in interface java.sql.Blob
public void mark(int readLimit)
mark
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
public long position(java.sql.Blob pattern, long start)
position
in interface java.sql.Blob
public long position(byte[] pattern, long start)
position
in interface java.sql.Blob
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public java.io.OutputStream setBinaryStream(long pos)
BlobValue
setBinaryStream
in interface java.sql.Blob
public int setBytes(long pos, byte[] bytes)
BlobValue
setBytes
in interface java.sql.Blob
public int setBytes(long pos, byte[] bytes, int offset, int len)
BlobValue
setBytes
in interface java.sql.Blob
public long skip(long nBytes) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public void truncate(long len)
BlobValue
truncate
in interface java.sql.Blob
public java.io.InputStream getBinaryStream(long pos, long length) throws java.sql.SQLException
getBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public void free() throws java.sql.SQLException
free
in interface java.sql.Blob
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |