com.starobject.mediasort.attributes
Class AttributeParser

java.lang.Object
  extended by com.starobject.mediasort.attributes.AttributeParser
Direct Known Subclasses:
AviAttributeParser, FileSystemAttributeParser, JpegAttributeParser, MusicAttributeParser

public abstract class AttributeParser
extends java.lang.Object

Abstract parser. Implementation of this abstract parser parse files for metadata attributes.


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

Field Detail

file

protected java.io.File file
Constructor Detail

AttributeParser

public AttributeParser()
Method Detail

parse

public abstract java.util.Map parse(java.io.File file)
                             throws ParserException
Parses the file for attributes and returns (name,value) pairs in the Map

Parameters:
file -
Returns:
name and values of attributes
Throws:
ParserException