net.sf.jdiskcatalog.analysis
Class BasicFileAnalyser
java.lang.Object
net.sf.jdiskcatalog.analysis.BasicFileAnalyser
- All Implemented Interfaces:
- FileAnalyser
public class BasicFileAnalyser
- extends java.lang.Object
- implements FileAnalyser
Provides simple file properties from the file system.
- Version:
- $Id$
- Author:
- Przemek Więch
Method Summary |
java.util.Map<java.lang.String,java.lang.Object> |
analyse(java.io.File file,
NodeInfo nodeInfo)
Analyses a given file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_PERMISSIONS
public static final java.lang.String KEY_PERMISSIONS
- See Also:
- Constant Field Values
KEY_FILESIZE
public static final java.lang.String KEY_FILESIZE
- See Also:
- Constant Field Values
KEY_LASTMODIFIED
public static final java.lang.String KEY_LASTMODIFIED
- See Also:
- Constant Field Values
BasicFileAnalyser
public BasicFileAnalyser()
analyse
public java.util.Map<java.lang.String,java.lang.Object> analyse(java.io.File file,
NodeInfo nodeInfo)
throws java.io.IOException
- Description copied from interface:
FileAnalyser
- Analyses a given file.
- Specified by:
analyse
in interface FileAnalyser
- Parameters:
file
- file to be analysednodeInfo
- contains information about this file that was gathered up to now.
- Returns:
- map containing attributes to be added to the file information.
- Throws:
java.io.IOException
Copyright © 2007. All Rights Reserved.