LimeWire Consolidated API

com.limegroup.gnutella.metadata.audio.reader
Class ASFParser

java.lang.Object
  extended by com.limegroup.gnutella.metadata.audio.reader.ASFParser

public class ASFParser
extends Object

A parser for reading ASF files. Everything we understand is stored. This is initially based off the work of Reed Esau, in his excellent ptarmigan package, from http://ptarmigan.sourceforge.net/ . This was also based off of the work in the XNap project, from http://xnap.sourceforge.net/xref/org/xnap/plugin/viewer/videoinfo/VideoFile.html , which in turn was based off the work from the avifile project, at http://avifile.sourceforge.net/ .


Constructor Summary
ASFParser(File f)
          Constructs a new ASFParser based off the given file, parsing all the known properties.
 
Method Summary
 String getAlbum()
           
 String getArtist()
           
 int getBitrate()
           
 String getComment()
           
 String getCopyright()
           
 String getGenre()
           
 int getHeight()
           
 int getLength()
           
 String getLicenseInfo()
           
 String getRating()
           
 String getTitle()
           
 short getTrack()
           
 WeedInfo getWeedInfo()
           
 int getWidth()
           
 WRMXML getWRMXML()
           
 String getYear()
           
 boolean hasAudio()
           
 boolean hasVideo()
           
protected  void parseFile(File f)
          Parses the given file for metadata we understand.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASFParser

public ASFParser(File f)
          throws IOException
Constructs a new ASFParser based off the given file, parsing all the known properties.

Throws:
IOException
Method Detail

getAlbum

public String getAlbum()

getArtist

public String getArtist()

getTitle

public String getTitle()

getYear

public String getYear()

getCopyright

public String getCopyright()

getRating

public String getRating()

getGenre

public String getGenre()

getComment

public String getComment()

getTrack

public short getTrack()

getBitrate

public int getBitrate()

getLength

public int getLength()

getWidth

public int getWidth()

getHeight

public int getHeight()

getWeedInfo

public WeedInfo getWeedInfo()

getWRMXML

public WRMXML getWRMXML()

hasAudio

public boolean hasAudio()

hasVideo

public boolean hasVideo()

getLicenseInfo

public String getLicenseInfo()

parseFile

protected void parseFile(File f)
                  throws IOException
Parses the given file for metadata we understand.

Throws:
IOException

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.