de.dv.sbu.filehandler
Interface IFileHandler

All Known Implementing Classes:
BinaryFileHandler, FtlFileHandler

public interface IFileHandler

Handles a file. This means: reading the given input stream and writing some result data (usually a text transformation or binary copy) into the given output stream. A SourceFileInformation describes a relative path to a source file the input stream results from. A file can be IFileFilter.acceptFile(SourceFileInformation) can make files skipped. handleFile(SourceFileInformation) produces the output for a source file. Will be called generally by some Builder instance.

Author:
Daniel Vogtland

Method Summary
 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.
 

Method Detail

init

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

Parameters:
builderConfiguration - The used builder configuration.

handleFile

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

Parameters:
sourceFileInfo - The file information of the related file.
Throws:
java.lang.Exception - Any exception to forward.