at.ac.tuwien.infosys.rnue.interfaces
Interface IFile

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
FileImpl

public interface IFile
extends java.io.Serializable

A class implementing the FileImpl interface represents a filename, path, and its size. It provides a constructor which sets the required parameters and methods to retrieve them.

A class implementing this interface should provide a java.lang.String relaticePathAndName representing the relative path name and the filename. The path is relative to the file base of the peer as first parameter. The second parameter is the java.lang.String filename and the third parameter is the size of the file of the type long.


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.
 

Method Detail

getFileName

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

Returns:
filename

getFilePathAndName

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

Returns:
relative path and filename

getFileSize

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

Returns:
file size