org.postgresql.pljava.jdbc
Class BlobValue

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.postgresql.pljava.jdbc.BlobValue
All Implemented Interfaces:
java.sql.Blob

public class BlobValue
extends java.io.InputStream
implements java.sql.Blob


Constructor Summary
BlobValue(byte[] bytes)
           
BlobValue(java.io.InputStream stream, long nBytes)
           
 
Method Summary
 int available()
           
 java.io.InputStream getBinaryStream()
           
 byte[] getBytes(long pos, int length)
           
 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

BlobValue

public BlobValue(byte[] bytes)

BlobValue

public BlobValue(java.io.InputStream stream,
                 long nBytes)
Method Detail

length

public long length()
Specified by:
length in interface java.sql.Blob

getBinaryStream

public java.io.InputStream getBinaryStream()
Specified by:
getBinaryStream in interface java.sql.Blob

getBytes

public byte[] getBytes(long pos,
                       int length)
                throws java.sql.SQLException
Specified by:
getBytes in interface java.sql.Blob
Throws:
java.sql.SQLException

position

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

Specified by:
position in interface java.sql.Blob

position

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

Specified by:
position in interface java.sql.Blob

setBinaryStream

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

Specified by:
setBinaryStream in interface java.sql.Blob

setBytes

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

Specified by:
setBytes in interface java.sql.Blob

setBytes

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

Specified by:
setBytes in interface java.sql.Blob

truncate

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

Specified by:
truncate in interface java.sql.Blob

available

public int available()
              throws java.io.IOException
Throws:
java.io.IOException

mark

public void mark(int readLimit)

markSupported

public boolean markSupported()

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException

skip

public long skip(long nBytes)
          throws java.io.IOException
Throws:
java.io.IOException

reset

public void reset()
           throws java.io.IOException
Throws:
java.io.IOException


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