peer2me.message
Class FileInfo

java.lang.Object
  extended by peer2me.message.FileInfo

public class FileInfo
extends java.lang.Object

A class that contains information about a received file.

Author:
Kim Saxlund

Constructor Summary
FileInfo(java.lang.String fileName, java.lang.String fullPathToFile, long fileSize)
          Constructor which creates the FileInfo object
 
Method Summary
 java.lang.String getFileName()
          Returns the name of the file
 long getFileSize()
          Returns the size of the file
 java.lang.String getFullPathToFile()
          Returns the full path of the file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileInfo

public FileInfo(java.lang.String fileName,
                java.lang.String fullPathToFile,
                long fileSize)
Constructor which creates the FileInfo object

Parameters:
fileName - The name of the file with extension
fullPathToFile - The full path to the file including name of file
fileSize - The size of the file in number of bytes
Method Detail

getFileName

public java.lang.String getFileName()
Returns the name of the file

Returns:
The filename

getFileSize

public long getFileSize()
Returns the size of the file

Returns:
The size is given in bytes

getFullPathToFile

public java.lang.String getFullPathToFile()
Returns the full path of the file

Returns:
The full path of the file. For instance: file:///SDCard/images/animal.jpg