net.sf.jdiskcatalog.analysis
Class FileStreamAnalyser

java.lang.Object
  extended by net.sf.jdiskcatalog.analysis.FileStreamAnalyser
All Implemented Interfaces:
FileAnalyser

public class FileStreamAnalyser
extends java.lang.Object
implements FileAnalyser

Runs a StreamAnalyser on a given File.

Version:
$Id$
Author:
Przemek Więch

Constructor Summary
FileStreamAnalyser(StreamAnalyser analyser)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> analyse(java.io.File file, NodeInfo fileInfo)
          Analyses a given file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStreamAnalyser

public FileStreamAnalyser(StreamAnalyser analyser)
Method Detail

analyse

public java.util.Map<java.lang.String,java.lang.Object> analyse(java.io.File file,
                                                                NodeInfo fileInfo)
                                                         throws java.io.IOException
Description copied from interface: FileAnalyser
Analyses a given file.

Specified by:
analyse in interface FileAnalyser
Parameters:
file - file to be analysed
fileInfo - 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.