Package weka.core

# Class FileHelper

java.lang.Object
weka.core.FileHelper

public class FileHelper extends Object
Wrapper class for File objects. File objects wrapped in this class can be serialized by Weka's XML serialization mechanism.

Version:
  $Revision: $
Author:
  Mark Hall (mhall{[at]}pentaho{[dot]}com)

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FileHelper()`
  No-op constructor for beans conformity
  `FileHelper(File file)`
  Constructor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `File`
  `getFile()`
  Get the file wrapped in this instance
  `String`
  `getFilePath()`
  Get the file path
  `void`
  `setFilePath(String path)`
  Set the file path

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### FileHelper

    public FileHelper(File file)
    Constructor
    Parameters:
      `file` - the file to wrap

  - ### FileHelper

    public FileHelper()
    No-op constructor for beans conformity

- ## Method Details

  - ### setFilePath

    public void setFilePath(String path)
    Set the file path
    Parameters:
      `path` - the path to set

  - ### getFilePath

    public String getFilePath()
    Get the file path
    Returns:
      the path to set

  - ### getFile

    public File getFile()
    Get the file wrapped in this instance
    Returns:
      the File object