com.limegroup.gnutella.metadata.audio.reader
Class ASFParser
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASFParser
public ASFParser(File f)
throws IOException
- Constructs a new ASFParser based off the given file, parsing all the known properties.
- Throws:
IOException
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
Copyright © 2009. All Rights Reserved.