org.fossilec.odettej.service
Class DataExchangeBuffer

java.lang.Object
  extended by org.fossilec.odettej.service.OdetteExchangeBuffer
      extended by org.fossilec.odettej.service.DataExchangeBuffer

public class DataExchangeBuffer
extends OdetteExchangeBuffer

DataExchange is an type of Odette FTP Exchange Buffer used for encapsulate and transmit of Virtual File records.


Field Summary
 
Fields inherited from class org.fossilec.odettej.service.OdetteExchangeBuffer
buffer, BUFFER_CHARSET, MAX_OEB_LENGTH, MIN_OEB_LENGTH
 
Constructor Summary
DataExchangeBuffer(java.nio.ByteBuffer rawBuffer)
           
DataExchangeBuffer(int exchangeBufferSize)
           
 
Method Summary
 void clear()
           
 int fill(java.nio.ByteBuffer record, boolean compression, RecordFormat format, boolean lastRecord)
           
 boolean hasRemaining()
           
protected  void parse(java.nio.ByteBuffer rawBuffer)
           
 void prepareSubmit()
           
 java.nio.ByteBuffer scrape(boolean compression, RecordFormat format)
           
 
Methods inherited from class org.fossilec.odettej.service.OdetteExchangeBuffer
getBuffer, getIdentifier, getInstance, getLength, setBuffer, setIdentifier, setLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataExchangeBuffer

public DataExchangeBuffer(java.nio.ByteBuffer rawBuffer)
                   throws OdetteFTPException
Throws:
OdetteFTPException

DataExchangeBuffer

public DataExchangeBuffer(int exchangeBufferSize)
Method Detail

clear

public void clear()

parse

protected void parse(java.nio.ByteBuffer rawBuffer)
              throws OdetteFTPException
Specified by:
parse in class OdetteExchangeBuffer
Throws:
OdetteFTPException
BufferCorruptedException - When a invalid buffer length is specified or with a wrong position.

fill

public int fill(java.nio.ByteBuffer record,
                boolean compression,
                RecordFormat format,
                boolean lastRecord)
         throws OdetteFTPException
Throws:
OdetteFTPException

scrape

public java.nio.ByteBuffer scrape(boolean compression,
                                  RecordFormat format)
                           throws OdetteFTPException
Throws:
OdetteFTPException

hasRemaining

public boolean hasRemaining()

prepareSubmit

public void prepareSubmit()


Copyright © 2005 ObjectWeb Consortium. All Rights Reserved.