net.firstpartners.rp.back.extractor.util
Class History

java.lang.Object
  extended by net.firstpartners.rp.back.extractor.util.History

public class History
extends java.lang.Object

History reader for IE and Mozilla under windows, linux and unix

Version:
1.4
Author:
Firstpartners.net

Field Summary
 java.lang.String IE_HISTORY
          IE history
private  java.io.FileFilter ieHistoryFilter
          ie history filter
static java.lang.String LINUX_MOZILLA_PATH
          Linux mozilla oath
 java.lang.String MOZILLA_HISTORY
          Mozilla history
private  java.io.FileFilter mozillaHistoryFilter
          mozilla history filter
static java.lang.String WIN_IE_PATH
          History folder
static java.lang.String WIN_MOZILLA_PATH
          Windoss mozilla path
 
Constructor Summary
History()
          Creates a new History object.
 
Method Summary
private  java.lang.Object[] getDirectories(java.io.File path)
          Gets the sub directories of the input directory.
 java.util.LinkedList getHistoryList()
          Get all the system history
 java.util.LinkedList getIEHistoryList(java.io.File pathName)
          Get the list of the IE - history
private  java.util.LinkedList getListHistoryFromFile(java.io.File file)
          Get the list of the history from the file
 java.util.LinkedList getMozillaHistoryList(java.io.File pathName)
          Get the list of the Mozilla - history!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIN_IE_PATH

public static final java.lang.String WIN_IE_PATH
History folder


WIN_MOZILLA_PATH

public static final java.lang.String WIN_MOZILLA_PATH
Windoss mozilla path


LINUX_MOZILLA_PATH

public static final java.lang.String LINUX_MOZILLA_PATH
Linux mozilla oath

See Also:
Constant Field Values

IE_HISTORY

public java.lang.String IE_HISTORY
IE history


MOZILLA_HISTORY

public java.lang.String MOZILLA_HISTORY
Mozilla history


ieHistoryFilter

private java.io.FileFilter ieHistoryFilter
ie history filter


mozillaHistoryFilter

private java.io.FileFilter mozillaHistoryFilter
mozilla history filter

Constructor Detail

History

public History()
Creates a new History object.

Method Detail

getIEHistoryList

public java.util.LinkedList getIEHistoryList(java.io.File pathName)
Get the list of the IE - history

Parameters:
pathName - Path to the history folder
Returns:
List of the IE-history

getMozillaHistoryList

public java.util.LinkedList getMozillaHistoryList(java.io.File pathName)
Get the list of the Mozilla - history!

Parameters:
pathName - Path to the parrent of history file
Returns:
List of the Mozilla-history

getListHistoryFromFile

private java.util.LinkedList getListHistoryFromFile(java.io.File file)
                                             throws java.io.IOException,
                                                    java.io.FileNotFoundException
Get the list of the history from the file

Parameters:
file - Property file
Returns:
List of the history from the file
Throws:
java.io.IOException - Exception occur in the communications
java.io.FileNotFoundException

getDirectories

private java.lang.Object[] getDirectories(java.io.File path)
Gets the sub directories of the input directory.

Parameters:
path - the directory to retreive sub directories from.
Returns:
array of sub directories. The array is of type Object[], however each element of the array may be casted to a File object.

getHistoryList

public java.util.LinkedList getHistoryList()
Get all the system history

Returns:
List with all the links for the system history (win/lixnux)