Package org.oddjob.io

Class FileType

java.lang.Object
org.oddjob.io.FileType
All Implemented Interfaces:
Serializable, ArooaValue

public class FileType extends Object implements ArooaValue, Serializable
Author:
Rob Gordon.
See Also:

Description

Specify a file. In addition to being useful for configuring a job property that requires a file, this type can be used wherever an input or output is required.

This type always resolves the canonical file name.

Example

Set the CopyJob file copy example.
  • Constructor Details

    • FileType

      public FileType()
  • Method Details

    • getFile

      public File getFile()
      Getter for file.
      Returns:
    • toCanonicalFile

      public File toCanonicalFile() throws IOException
      The Canonical form of the file.
      Returns:
      The Canonical form.
      Throws:
      IOException
    • setFile

      public void setFile(File file)
      Set the file.
      Parameters:
      file - The file.
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object