de.dv.sbu.filehandler.binary
Class BinaryFileHandler

java.lang.Object
  extended by de.dv.sbu.filehandler.binary.BinaryFileHandler
All Implemented Interfaces:
IFileHandler

public class BinaryFileHandler
extends java.lang.Object
implements IFileHandler

Binary file copier.

Author:
Daniel Vogtland

Constructor Summary
BinaryFileHandler()
           
 
Method Summary
 int getBufferSize()
          Returns the buffer size (in bytes).
 void handleFile(SourceFileInformation sourceFileInfo)
          Handles a source file and will proceed related output file(s).
 void init(BuilderConfiguration builderConfiguration)
          Called once for each processing job.
 void setBufferSize(int bufferSize)
          Sets the buffer size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryFileHandler

public BinaryFileHandler()
Method Detail

getBufferSize

public int getBufferSize()
Returns the buffer size (in bytes).

Returns:
The used buffer size.

setBufferSize

public void setBufferSize(int bufferSize)
                   throws java.lang.IllegalArgumentException
Sets the buffer size.

Parameters:
bufferSize - The size to set (in bytes).
Throws:
java.lang.IllegalArgumentException - The size is less 1.

init

public void init(BuilderConfiguration builderConfiguration)
Called once for each processing job.

Specified by:
init in interface IFileHandler
Parameters:
builderConfiguration - The used builder configuration.
See Also:
IFileHandler.init(de.dv.sbu.builder.BuilderConfiguration)

handleFile

public void handleFile(SourceFileInformation sourceFileInfo)
                throws java.lang.Exception
Handles a source file and will proceed related output file(s).

Specified by:
handleFile in interface IFileHandler
Parameters:
sourceFileInfo - The file information of the related file.
Throws:
java.lang.Exception - Any exception to forward.
See Also:
IFileHandler.handleFile(de.dv.sbu.SourceFileInformation)