org.fossilec.odettej.service
Class DataExchangeBuffer
java.lang.Object
org.fossilec.odettej.service.OdetteExchangeBuffer
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataExchangeBuffer
public DataExchangeBuffer(java.nio.ByteBuffer rawBuffer)
throws OdetteFTPException
- Throws:
OdetteFTPException
DataExchangeBuffer
public DataExchangeBuffer(int exchangeBufferSize)
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.