org.apache.cocoon.util
Class BlobHelper

java.lang.Object
  |
  +--org.apache.cocoon.util.BlobHelper
All Implemented Interfaces:
java.sql.Blob

public class BlobHelper
extends java.lang.Object
implements java.sql.Blob

A minimal implementation just enough to send a BLOB to a database. Advanced methods and all methods for modifying the BLOB are not implemented.


Constructor Summary
BlobHelper(java.io.InputStream is, long len)
           
 
Method Summary
 java.io.InputStream getBinaryStream()
           
 byte[] getBytes(long pos, int length)
          Not implemented.
 long length()
           
 long position(java.sql.Blob pattern, long start)
          Not implemented.
 long position(byte[] pattern, long start)
          Not implemented.
 java.io.OutputStream setBinaryStream(long pos)
          Not implemented.
 int setBytes(long pos, byte[] bytes)
          Not implemented.
 int setBytes(long pos, byte[] bytes, int offset, int len)
          Not implemented.
 void truncate(long len)
          Not implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobHelper

public BlobHelper(java.io.InputStream is,
                  long len)
Method Detail

getBinaryStream

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

length

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

getBytes

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

position

public long position(java.sql.Blob pattern,
                     long start)
Not implemented.
Specified by:
position in interface java.sql.Blob

position

public long position(byte[] pattern,
                     long start)
Not implemented.
Specified by:
position in interface java.sql.Blob

setBinaryStream

public java.io.OutputStream setBinaryStream(long pos)
Not implemented.

setBytes

public int setBytes(long pos,
                    byte[] bytes)
Not implemented.

setBytes

public int setBytes(long pos,
                    byte[] bytes,
                    int offset,
                    int len)
Not implemented.

truncate

public void truncate(long len)
Not implemented.


Copyright � 1999-2002 Apache Software Foundation. All Rights Reserved.