Package science.aist.gtf.template
Interface IOHandler<C>
-
- Type Parameters:
C
- the current context
- All Known Implementing Classes:
IOHandlerImpl
public interface IOHandler<C>
Handler for IO Operations
- Since:
- 1.0
- Author:
- Andreas Schuler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handleDirectoryCopy(C context, String sourceDirectory, String targetDirectory, boolean overwrite, String... excludes)
Copies the full directly treevoid
handleDirectoryCreate(C context, String directoryPath)
Creates a directoryvoid
handleFileCopy(C context, String sourceFile, String targetFile)
Copies a file from source to targetvoid
unzipFile(C context, String sourceFile, String targetDirectory)
Unzips a file
-
-
-
Method Detail
-
handleDirectoryCopy
void handleDirectoryCopy(C context, String sourceDirectory, String targetDirectory, boolean overwrite, String... excludes)
Copies the full directly tree- Parameters:
context
- the context in which this happenssourceDirectory
- the source directorytargetDirectory
- the target directoryoverwrite
- flag whether there target directory should be overwritten if it already existsexcludes
- the files to exclude
-
handleFileCopy
void handleFileCopy(C context, String sourceFile, String targetFile)
Copies a file from source to target- Parameters:
context
- the context in which this happenssourceFile
- the source file pathtargetFile
- the target file path
-
handleDirectoryCreate
void handleDirectoryCreate(C context, String directoryPath)
Creates a directory- Parameters:
context
- the context in which this should happendirectoryPath
- the directory that should be created
-
-