org.neociclo.odetteftp.protocol.data
Class CompressionMapping

java.lang.Object
  extended by org.neociclo.odetteftp.protocol.data.AbstractMapping
      extended by org.neociclo.odetteftp.protocol.data.CompressionMapping
All Implemented Interfaces:
MappingStrategy

public class CompressionMapping
extends AbstractMapping

Version:
$Rev: 463 $ $Date: 2010-07-02 18:37:41 -0300 (Fri, 02 Jul 2010) $
Author:
Rafael Marins

Field Summary
 
Fields inherited from class org.neociclo.odetteftp.protocol.data.AbstractMapping
DEFAULT_VIRTUAL_FILE_BLOCK_SIZE, LINE_SEPARATOR, MAX_SUBRECORD_LENGTH, TEXTFILE_BLOCK_SIZE
 
Constructor Summary
CompressionMapping()
           
 
Method Summary
 boolean readData(VirtualFile virtualFile, FileChannel in, DataExchangeBuffer deb)
           
 long writeData(VirtualFile virtualFile, DataExchangeBuffer deb, FileChannel out)
           
 
Methods inherited from class org.neociclo.odetteftp.protocol.data.AbstractMapping
discardReadBytes, getInstance, position, read, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressionMapping

public CompressionMapping()
Method Detail

readData

public boolean readData(VirtualFile virtualFile,
                        FileChannel in,
                        DataExchangeBuffer deb)
                 throws OdetteFtpException
Specified by:
readData in interface MappingStrategy
Specified by:
readData in class AbstractMapping
Returns:
true reach end of the stream (EOF).
Throws:
OdetteFtpException

writeData

public long writeData(VirtualFile virtualFile,
                      DataExchangeBuffer deb,
                      FileChannel out)
               throws OdetteFtpException
Specified by:
writeData in interface MappingStrategy
Specified by:
writeData in class AbstractMapping
Throws:
OdetteFtpException


ACCORD