dk.vajhoej.isam.remote
Class ObjectServer

java.lang.Object
  extended by dk.vajhoej.isam.remote.ObjectServer
All Implemented Interfaces:
IsamProtocol, IsamProtocolServer

public class ObjectServer
extends java.lang.Object
implements IsamProtocolServer

Class ObjectServer implement IsamProtocolServer using ObjectStream's.


Field Summary
 
Fields inherited from interface dk.vajhoej.isam.remote.IsamProtocol
B_V1, CLOSE, CREATE, DELETE, ERROR, FIND_GE, FIND_GT, FIND_LE, FIND_LT, O_V1, OK, READ, RESULT_CLOSE, RESULT_CURRENT, RESULT_READ, UPDATE
 
Constructor Summary
ObjectServer(java.io.InputStream is, java.io.OutputStream os)
          Create instance of ObjectServer.
 
Method Summary
 void process(IsamSource isam)
          Process all incoming commands.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectServer

public ObjectServer(java.io.InputStream is,
                    java.io.OutputStream os)
             throws IsamException
Create instance of ObjectServer.

Parameters:
is - input stream to wrap in input object stream
os - output stream to wrap in output object stream
Throws:
IsamException - if problem with ISAM source
Method Detail

process

public void process(IsamSource isam)
             throws IsamException,
                    RecordException
Description copied from interface: IsamProtocolServer
Process all incoming commands.

Specified by:
process in interface IsamProtocolServer
Parameters:
isam - ISAM source
Throws:
IsamException - if problems with ISAM source
RecordException - if problems with record definition