org.postgresql.pljava.jdbc

Class BlobValue

Implemented Interfaces:
Blob

public class BlobValue
extends InputStream
implements Blob

Constructor Summary

BlobValue(InputStream stream, long nBytes)
BlobValue(byte[] bytes)

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

Constructor Details

BlobValue

public BlobValue(InputStream stream,
                 long nBytes)

BlobValue

public BlobValue(byte[] bytes)

Method Details

available

public int available()
            throws IOException

getBinaryStream

public InputStream getBinaryStream()

getBytes

public byte[] getBytes(long pos,
                       int length)
            throws SQLException

getContents

public void getContents(ByteBuffer buf)
            throws IOException
Called from within...

getStreamLength

public static int getStreamLength(InputStream value)
            throws SQLException

length

public long length()

mark

public void mark(int readLimit)

markSupported

public boolean markSupported()

position

public long position(Blob pattern,
                     long start)
Not supported.

position

public long position(byte[] pattern,
                     long start)
Not supported.

read

public int read()
            throws IOException

read

public int read(byte[] b)
            throws IOException

read

public int read(byte[] b,
                int off,
                int len)
            throws IOException

reset

public void reset()
            throws IOException

setBinaryStream

public OutputStream setBinaryStream(long pos)
In this method is not supported by BlobValue

setBytes

public int setBytes(long pos,
                    byte[] bytes)
In this method is not supported by BlobValue

setBytes

public int setBytes(long pos,
                    byte[] bytes,
                    int offset,
                    int len)
In this method is not supported by BlobValue

skip

public long skip(long nBytes)
            throws IOException

truncate

public void truncate(long len)
In this method is not supported by BlobValue

Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \ Distributed under the terms shown in COPYRIGHT