Interface PathGroup.TransformHandler

Enclosing class:
PathGroup

public static interface PathGroup.TransformHandler
Handler of file copying and directory creating.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    copyFile(Path src, Path dst)
    Request to copy a file from the given source location into the given destination location.
    default void
    Request to copy a symbolic link from the given source location into the given destination location.
    default void
    Request to create a directory at the given location.
  • Method Details

    • copyFile

      default void copyFile(Path src, Path dst) throws IOException
      Request to copy a file from the given source location into the given destination location.
      Parameters:
      src - the source file location
      dst - the destination file location
      Throws:
      IOException - If an I/O error occurs
      Implementation Note:
      Default implementation takes no action
    • createDirectory

      default void createDirectory(Path dir) throws IOException
      Request to create a directory at the given location.
      Parameters:
      dir - the path where the directory is requested to be created
      Throws:
      IOException
      Implementation Note:
      Default implementation takes no action
    • copySymbolicLink

      default void copySymbolicLink(Path src, Path dst) throws IOException
      Request to copy a symbolic link from the given source location into the given destination location.
      Parameters:
      src - the source symbolic link location
      dst - the destination symbolic link location
      Throws:
      IOException - If an I/O error occurs
      Implementation Note:
      Default implementation calls copyFile(java.nio.file.Path, java.nio.file.Path).