peer2me.util
Class FileHandler

java.lang.Object
  extended by peer2me.util.FileHandler

public class FileHandler
extends java.lang.Object

This class is used to store information about the mobile phone's receive-folder. This is done by getting the phone's root directories using getRootDirectories(), and adding the given prefic

Author:
Kim Saxlund

Method Summary
static FileHandler getInstance()
          Gets a reference FileHandler using singelton
 java.lang.String getReceivedFilesFolder()
          Gets the path to the folder where received files are stored
 void setReceivedFilesFolder(java.lang.String receivedFilesFolder)
          Sets a default folder where received files are stored according to the input.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FileHandler getInstance()
Gets a reference FileHandler using singelton

Returns:
a reference to FileHandler

getReceivedFilesFolder

public java.lang.String getReceivedFilesFolder()
Gets the path to the folder where received files are stored

Returns:
a String containing the path to where the received files are stored.

setReceivedFilesFolder

public void setReceivedFilesFolder(java.lang.String receivedFilesFolder)
Sets a default folder where received files are stored according to the input.

Parameters:
receivedFilesFolder - the folder where received files are stored.