1 2 9 10 package org.objectweb.rmijdbc; 11 12 import java.sql.*; 13 import java.rmi.RemoteException ; 14 15 32 33 public interface RJBlobInterface extends java.rmi.Remote { 34 35 long length() throws RemoteException , SQLException; 36 37 byte[] getBytes(long pos, int length) throws RemoteException , SQLException; 38 39 byte[] getBinaryStream() throws RemoteException , SQLException; 41 42 long position(byte[] pattern, long start) 43 throws RemoteException , SQLException; 44 45 long position(Blob pattern, long start) 46 throws RemoteException , SQLException; 47 48 50 int setBytes(long pos, byte[] bytes) throws RemoteException , SQLException; 51 52 int setBytes(long pos, byte[] bytes, int offset, int len) throws RemoteException , SQLException; 53 54 java.io.OutputStream setBinaryStream(long pos) throws RemoteException , SQLException; 55 56 void truncate(long len) throws RemoteException , SQLException; 57 58 }; 59 60 | Popular Tags |