java.lang.Object
org.jempeg.empeg.core.FileMagic
- public class FileMagic
- extends java.lang.Object
This class parses audio files to determine their format and tagging, and
exposes that information through a common interface. It uses the TFF
Enterprises music tagging classes as its implementation of the ID3v1 and
ID3v2.2/2.3 standards.
- Version:
- 2.0a1 $Date: 2002/01/06 20:17:59 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATUS_NO_INFO
public static final int STATUS_NO_INFO
- See Also:
- Constant Field Values
STATUS_PARTIAL_INFO
public static final int STATUS_PARTIAL_INFO
- See Also:
- Constant Field Values
STATUS_HAVE_INFO
public static final int STATUS_HAVE_INFO
- See Also:
- Constant Field Values
myFile
private org.jempeg.empeg.emptool.ImportFileIfc myFile
myStatus
private int myStatus
myCodec
private java.lang.String myCodec
myTitle
private java.lang.String myTitle
myArtist
private java.lang.String myArtist
mySource
private java.lang.String mySource
myComment
private java.lang.String myComment
myGenreName
private java.lang.String myGenreName
myBitrate
private java.lang.String myBitrate
myYear
private java.lang.String myYear
myVBR
private boolean myVBR
myByteLength
private int myByteLength
myDataOffset
private int myDataOffset
mySampleRate
private int mySampleRate
myLengthInMs
private int myLengthInMs
myTrackNum
private int myTrackNum
myLengthInBytes
private long myLengthInBytes
FileMagic
public FileMagic(org.jempeg.empeg.emptool.ImportFileIfc _file)
throws java.io.IOException
getStatus
public int getStatus()
hasAnyInfo
public boolean hasAnyInfo()
hasFullInfo
public boolean hasFullInfo()
getCodec
public java.lang.String getCodec()
getTitle
public java.lang.String getTitle()
getArtist
public java.lang.String getArtist()
getSource
public java.lang.String getSource()
getComment
public java.lang.String getComment()
getGenreName
public java.lang.String getGenreName()
getBitrate
public java.lang.String getBitrate()
getYear
public java.lang.String getYear()
isVBR
public boolean isVBR()
getByteLength
public long getByteLength()
getDataOffset
public int getDataOffset()
getSampleRate
public int getSampleRate()
getLengthMs
public int getLengthMs()
getTrackNum
public int getTrackNum()
identify
public void identify()
throws java.io.IOException
extractFrameInfo
public void extractFrameInfo()
throws java.io.IOException
identifyMP3
public void identifyMP3()
throws java.io.IOException
extractTags
public void extractTags(java.io.File _file)
throws java.io.IOException
- Extracts the ID3 tag from the file and fills in the fields of
this class appropriately.