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 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 happens
        sourceDirectory - the source directory
        targetDirectory - the target directory
        overwrite - flag whether there target directory should be overwritten if it already exists
        excludes - 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 happens
        sourceFile - the source file path
        targetFile - the target file path
      • handleDirectoryCreate

        void handleDirectoryCreate​(C context,
                                   String directoryPath)
        Creates a directory
        Parameters:
        context - the context in which this should happen
        directoryPath - the directory that should be created
      • unzipFile

        void unzipFile​(C context,
                       String sourceFile,
                       String targetDirectory)
        Unzips a file
        Parameters:
        context - the context in which this should happen
        sourceFile - the source file that should be unzipped
        targetDirectory - the target directory where to unzip the file to