at.ac.tuwien.infosys.rnue.helpers.search
Class FileImpl

java.lang.Object
  |
  +--at.ac.tuwien.infosys.rnue.helpers.search.FileImpl
All Implemented Interfaces:
IFile, java.io.Serializable

public class FileImpl
extends java.lang.Object
implements IFile

The FileImpl class represents a filename and its size. It provides a constructor which sets the required parameters and methods to retrieve them.

See Also:
Serialized Form

Constructor Summary
FileImpl(java.lang.String relativePathAndName, java.lang.String name, long size)
          Constructs an new FileImpl object.
 
Method Summary
 java.lang.String getFileName()
          Returns the filename.
 java.lang.String getFilePathAndName()
          Returns the relative path and the filename.
 long getFileSize()
          Returns the size of the file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileImpl

public FileImpl(java.lang.String relativePathAndName,
                java.lang.String name,
                long size)
Constructs an new FileImpl object.

Parameters:
size - size of the file.
Method Detail

getFileName

public java.lang.String getFileName()
Returns the filename.

Specified by:
getFileName in interface IFile
Returns:
filename

getFilePathAndName

public java.lang.String getFilePathAndName()
Returns the relative path and the filename.

Specified by:
getFilePathAndName in interface IFile
Returns:
relative path and filename

getFileSize

public long getFileSize()
Returns the size of the file.

Specified by:
getFileSize in interface IFile
Returns:
file size