|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.sound.MP3FileProperties
@ThirdParty(value="de.vdheide.mp3") public class MP3FileProperties
MP3Properties allows access to MP3-specific properties of an MP3 file.
Dependency on:
package de.vdheide.mp3, see: http://www.vdheide.de/
This class is just a convenient wrapper around the functionality provided by the cd.vdheide.mp3 package; it adds no significant new functionality, but only simplifies access to a commonly used subset of the original functionality. In particular, this class only exposes read-only access to the properties.
| Constructor Summary | |
|---|---|
MP3FileProperties(File mp3File)
|
|
| Method Summary | |
|---|---|
String |
getAlbum()
|
String |
getArtist()
|
String |
getBand()
|
int |
getBitrate()
|
String |
getBPM()
|
byte[] |
getCDIdentifier()
|
String |
getComposer()
|
String |
getConductor()
|
boolean |
getCopyright()
|
String |
getCopyrightText()
|
String |
getEncodedBy()
|
String |
getFileOwner()
|
String |
getGenre()
|
long |
getLength()
calculated length in milliseconds |
de.vdheide.mp3.MP3File |
getMP3File()
|
int |
getMPEGLevel()
|
Properties |
getProperties()
returns a convenient Map of commonly used properties of this MP3 file - as far as available |
String |
getPropertiesAsString()
a convenience method returning all known properties as a String |
int |
getSamplerate()
|
String |
getSubtitle()
|
String |
getTitle()
|
int |
getTrack()
|
int |
getYear()
returns -1 if the year cannot be parsed as a number |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MP3FileProperties(File mp3File)
throws SoundException
SoundException| Method Detail |
|---|
public de.vdheide.mp3.MP3File getMP3File()
public Properties getProperties()
public String getPropertiesAsString()
public int getBitrate()
public int getSamplerate()
public boolean getCopyright()
public int getMPEGLevel()
public long getLength()
public String getTitle()
throws SoundException
SoundException
public String getAlbum()
throws SoundException
SoundException
public String getArtist()
throws SoundException
SoundException
public String getGenre()
throws SoundException
SoundException
public String getBand()
throws SoundException
SoundException
public String getSubtitle()
throws SoundException
SoundException
public int getTrack()
throws SoundException
SoundException
public int getYear()
throws SoundException
SoundException
public String getCopyrightText()
throws SoundException
SoundException
public String getComposer()
throws SoundException
SoundException
public String getConductor()
throws SoundException
SoundException
public String getBPM()
throws SoundException
SoundException
public String getEncodedBy()
throws SoundException
SoundException
public String getFileOwner()
throws SoundException
SoundException
public byte[] getCDIdentifier()
throws SoundException
SoundException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||