jInfer

cz.cuni.mff.ksi.jinfer.iss.experiments.data
Class InputFile

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.iss.experiments.data.InputFile

public class InputFile
extends Object

Class representing an file being used as an input in an experiment.


Constructor Summary
InputFile(File file)
          Partial constructor.
InputFile(File file, FileCharacteristics characteristics)
          Full constructor.
InputFile(String file)
          Partial constructor.
InputFile(String file, FileCharacteristics characteristics)
          Full constructor.
 
Method Summary
 FileCharacteristics getCharacteristics()
          Returns the general characteristic of this file.
 File getFile()
          Returns the object representing this file.
 String getName()
          Returns the name (no path, see File.getName()) of this file.
 long getSize()
          Returns the size of this input file in bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputFile

public InputFile(String file,
                 FileCharacteristics characteristics)
Full constructor.

Parameters:
file - String representing the file name.
characteristics - General characteristic of the file.

InputFile

public InputFile(File file,
                 FileCharacteristics characteristics)
Full constructor.

Parameters:
file - Object representing the file itself.
characteristics - General characteristic of the file.

InputFile

public InputFile(String file)
Partial constructor. Assumes the file to be of unknown type (FileCharacteristics.UNKNOWN).

Parameters:
file - String representing the file name.

InputFile

public InputFile(File file)
Partial constructor. Assumes the file to be of unknown type (FileCharacteristics.UNKNOWN).

Parameters:
file - Object representing the file itself.
Method Detail

getFile

public File getFile()
Returns the object representing this file.


getCharacteristics

public FileCharacteristics getCharacteristics()
Returns the general characteristic of this file.


getName

public String getName()
Returns the name (no path, see File.getName()) of this file.


getSize

public long getSize()
Returns the size of this input file in bytes.

Returns:
Size in bytes.

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011