Package org.jpeek

Class FileTarget

  • All Implemented Interfaces:
    Target

    public final class FileTarget
    extends Object
    implements Target
    File Target.
    Since:
    0.26.4
    • Constructor Detail

      • FileTarget

        public FileTarget​(File target,
                          Boolean overwrite)
        Ctor.
        Parameters:
        target - Target dir
        overwrite - Overwrite if exists
    • Method Detail

      • toPath

        public Path toPath()
                    throws IOException
        Description copied from interface: Target
        Returns the Path of Target.
        Specified by:
        toPath in interface Target
        Returns:
        The Path of Target
        Throws:
        IOException - If something goes wrong