ch.busyboxes.agoo.dao.impl
Class FileSystemDAOImpl

java.lang.Object
  extended by ch.busyboxes.agoo.dao.impl.FileSystemDAOImpl
All Implemented Interfaces:
FileSystemDAO

public class FileSystemDAOImpl
extends java.lang.Object
implements FileSystemDAO

Implementation of the file system dao

Author:
julien@busyboxes.ch

Constructor Summary
FileSystemDAOImpl()
           
 
Method Summary
 java.lang.String computeMd5Hash(java.lang.String path)
          Compute md5 hash
 java.util.List<java.lang.String> getFilesInPath(java.lang.String path)
          List all files in a given folder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemDAOImpl

public FileSystemDAOImpl()
Method Detail

getFilesInPath

public java.util.List<java.lang.String> getFilesInPath(java.lang.String path)
Description copied from interface: FileSystemDAO
List all files in a given folder

Specified by:
getFilesInPath in interface FileSystemDAO
Parameters:
path - the path to the folder
Returns:
the list of file's paths relative to the folder
See Also:
FileSystemDAO.getFilesInPath(String)

computeMd5Hash

public java.lang.String computeMd5Hash(java.lang.String path)
Description copied from interface: FileSystemDAO
Compute md5 hash

Specified by:
computeMd5Hash in interface FileSystemDAO
Parameters:
path - the path of the file to be checked
Returns:
the md5 of the file
See Also:
FileSystemDAO.computeMd5Hash(String)


Copyright © 2009. All Rights Reserved.