KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > rmi > interfaces > _RmiBlob


1 package com.daffodilwoods.rmi.interfaces;
2
3 import java.rmi.*;
4 import java.sql.*;
5
6 public interface _RmiBlob
7     extends Remote {
8
9   long length() throws SQLException, RemoteException;
10
11   byte[] getBytes(long pos, int length) throws SQLException, RemoteException;
12
13   _RmiInputStream getBinaryStream() throws SQLException, RemoteException;
14
15   long position(byte pattern[], long start) throws SQLException,
16       RemoteException;
17
18   long position(Blob pattern, long start) throws SQLException, RemoteException;
19
20   int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException,
21       RemoteException;
22
23   _RmiOutputStream setBinaryStream(long pos) throws SQLException,
24       RemoteException;
25
26   void truncate(long len) throws SQLException, RemoteException;
27
28 }
29
Popular Tags