com.starobject.mediasort.attributes
Class FileSystemAttributeParser

java.lang.Object
  extended by com.starobject.mediasort.attributes.AttributeParser
      extended by com.starobject.mediasort.attributes.FileSystemAttributeParser

public class FileSystemAttributeParser
extends AttributeParser

Parses main filesystem attributes. Add file checksum as a custom attribute.


Field Summary
 
Fields inherited from class com.starobject.mediasort.attributes.AttributeParser
file
 
Constructor Summary
FileSystemAttributeParser()
           
 
Method Summary
 java.util.Map parse(java.io.File file)
          Parses the file for attributes and returns (name,value) pairs in the Map
 java.util.Map parse(java.io.File file, boolean checksum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemAttributeParser

public FileSystemAttributeParser()
Method Detail

parse

public java.util.Map parse(java.io.File file,
                           boolean checksum)
                    throws ParserException
Throws:
ParserException

parse

public java.util.Map parse(java.io.File file)
                    throws ParserException
Description copied from class: AttributeParser
Parses the file for attributes and returns (name,value) pairs in the Map

Specified by:
parse in class AttributeParser
Returns:
name and values of attributes
Throws:
ParserException