org.fossilec.odettej.service
Class StreamTransmissionService

java.lang.Object
  extended by org.fossilec.odettej.service.Service
      extended by org.fossilec.odettej.service.StreamTransmissionService

public class StreamTransmissionService
extends Service

The Service class provide a protocol level abstraction layer which encloses the transport layer in using communication. It's used in conjunction with OdetteExchangeBuffer class to send and receive commands and data.

The Odette FTP specification don't indicate whether this service layer must exist or not, but it makes sense to link the Odette Entity and the (network) transport layer.

Author:
Rafael Marins

Constructor Summary
StreamTransmissionService(Transport transport, int debSize)
           
 
Method Summary
 OdetteExchangeBuffer receive(boolean strictFormat)
           
 int send(OdetteExchangeBuffer oeb)
           
 
Methods inherited from class org.fossilec.odettej.service.Service
connect, disconnect, getExchangeBufferSize, getInstance, getTransport, isConnected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamTransmissionService

public StreamTransmissionService(Transport transport,
                                 int debSize)
Method Detail

receive

public OdetteExchangeBuffer receive(boolean strictFormat)
                             throws OdetteFTPException
Specified by:
receive in class Service
Throws:
OdetteFTPException

send

public int send(OdetteExchangeBuffer oeb)
         throws OdetteFTPException
Specified by:
send in class Service
Throws:
OdetteFTPException


Copyright © 2005 ObjectWeb Consortium. All Rights Reserved.