1 package in.co.daffodil.db.jdbc; 2 3 import java.io.*; 4 import java.sql.*; 5 6 32 33 public class DaffodilDBBlob implements Blob,Serializable{ 34 private Blob blob; 35 36 37 public DaffodilDBBlob(Blob blob){ 38 this.blob = blob; 39 } 40 41 49 public long length() throws SQLException{ 50 return blob.length(); 51 } 52 53 72 public byte[] getBytes(long pos, int length) throws SQLException{ 73 return blob.getBytes(pos,length); 74 } 75 76 86 public java.io.InputStream getBinaryStream() throws SQLException{ 87 return blob.getBinaryStream(); 88 } 89 90 105 public long position(byte pattern[], long start) throws SQLException{ 106 return blob.position(pattern,start); 107 } 108 109 124 public long position(Blob pattern, long start) throws SQLException{ 125 return blob.position(pattern,start); 126 } 127 128 129 144 public int setBytes(long pos, byte[] bytes) throws SQLException{ 145 return blob.setBytes(pos,bytes); 146 } 147 148 169 public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException{ 170 return blob.setBytes(pos,bytes,offset,len); 171 } 172 173 187 public java.io.OutputStream setBinaryStream(long pos) throws SQLException{ 188 return blob.setBinaryStream(pos); 189 } 190 191 201 public void truncate(long len) throws SQLException{ 202 blob.truncate(len);; 203 } 204 } 205 | Popular Tags |