javazoom.jlgui.player.amp.tag
Class APEInfo

java.lang.Object
  extended by javazoom.jlgui.player.amp.tag.APEInfo
All Implemented Interfaces:
TagInfo

public class APEInfo
extends java.lang.Object
implements TagInfo

This class gives information (audio format and comments) about APE file or URL.


Field Summary
protected  java.lang.String album
           
protected  java.lang.String author
           
protected  int bitrate
           
protected  int bitspersample
           
protected  int blocksperframe
           
protected  int channels
           
protected  java.lang.String comment
           
protected  java.lang.String compressionlevel
           
protected  java.lang.String copyright
           
protected  java.util.Date date
           
protected  long duration
           
protected  int finalframeblocks
           
protected  java.lang.String genre
           
protected  java.lang.String location
           
protected  int peaklevel
           
protected  int samplerate
           
protected  long size
           
protected  java.lang.String title
           
protected  int totalblocks
           
protected  int totalframes
           
protected  java.lang.String track
           
protected  int version
           
 
Constructor Summary
APEInfo()
          Constructor.
 
Method Summary
 java.lang.String getAlbum()
          Get the name of the album upon which the song resides
 java.lang.String getArtist()
          Get the artist that performed the song
 int getBitRate()
          Get Nominal Bitrate
 int getBitsPerSample()
           
 int getBlocksperframe()
           
 int getChannels()
          Get channels.
 java.util.Vector getComment()
          Get any comments provided about the song
 java.lang.String getCompressionlevel()
           
 java.lang.String getCopyright()
           
 int getFinalframeblocks()
           
 java.lang.String getGenre()
          Get the genre string of the music
 java.lang.String getLocation()
           
 int getPeaklevel()
           
 long getPlayTime()
          Get play time in seconds.
 int getSamplingRate()
          Get Sampling Rate
 long getSize()
           
 java.lang.String getTitle()
          Get the title of the song.
 int getTotalblocks()
           
 int getTotalframes()
           
 int getTrack()
          Get the track number of this track on the album
 int getVersion()
           
 java.lang.String getYear()
          Get the year the track was released
 void load(java.io.File input)
          Load and parse APE info from File.
 void load(java.io.InputStream input)
          Load and parse APE info from InputStream.
 void load(java.net.URL input)
          Load and parse APE info from URL.
protected  void loadInfo(javax.sound.sampled.AudioFileFormat aff)
          Load APE info from AudioFileFormat.
protected  void loadInfo(java.io.File file)
          Load APE info from file.
protected  void loadInfo(java.io.InputStream input)
          Load APE info from input stream.
protected  void loadInfo(java.net.URL input)
          Load APE info from URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channels

protected int channels

bitspersample

protected int bitspersample

samplerate

protected int samplerate

bitrate

protected int bitrate

version

protected int version

compressionlevel

protected java.lang.String compressionlevel

totalframes

protected int totalframes

blocksperframe

protected int blocksperframe

finalframeblocks

protected int finalframeblocks

totalblocks

protected int totalblocks

peaklevel

protected int peaklevel

duration

protected long duration

author

protected java.lang.String author

title

protected java.lang.String title

copyright

protected java.lang.String copyright

date

protected java.util.Date date

comment

protected java.lang.String comment

track

protected java.lang.String track

genre

protected java.lang.String genre

album

protected java.lang.String album

size

protected long size

location

protected java.lang.String location
Constructor Detail

APEInfo

public APEInfo()
Constructor.

Method Detail

load

public void load(java.io.File input)
          throws java.io.IOException,
                 javax.sound.sampled.UnsupportedAudioFileException
Load and parse APE info from File.

Specified by:
load in interface TagInfo
Parameters:
input -
Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

load

public void load(java.net.URL input)
          throws java.io.IOException,
                 javax.sound.sampled.UnsupportedAudioFileException
Load and parse APE info from URL.

Specified by:
load in interface TagInfo
Parameters:
input -
Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

load

public void load(java.io.InputStream input)
          throws java.io.IOException,
                 javax.sound.sampled.UnsupportedAudioFileException
Load and parse APE info from InputStream.

Specified by:
load in interface TagInfo
Parameters:
input -
Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

loadInfo

protected void loadInfo(java.io.InputStream input)
                 throws java.io.IOException,
                        javax.sound.sampled.UnsupportedAudioFileException
Load APE info from input stream.

Parameters:
input -
Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

loadInfo

protected void loadInfo(java.io.File file)
                 throws java.io.IOException,
                        javax.sound.sampled.UnsupportedAudioFileException
Load APE info from file.

Parameters:
file -
Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

loadInfo

protected void loadInfo(javax.sound.sampled.AudioFileFormat aff)
                 throws javax.sound.sampled.UnsupportedAudioFileException
Load APE info from AudioFileFormat.

Parameters:
aff -
Throws:
javax.sound.sampled.UnsupportedAudioFileException

loadInfo

protected void loadInfo(java.net.URL input)
                 throws java.io.IOException,
                        javax.sound.sampled.UnsupportedAudioFileException
Load APE info from URL.

Parameters:
input -
Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

getSize

public long getSize()

getLocation

public java.lang.String getLocation()

getVersion

public int getVersion()

getCompressionlevel

public java.lang.String getCompressionlevel()

getTotalframes

public int getTotalframes()

getBlocksperframe

public int getBlocksperframe()

getFinalframeblocks

public int getFinalframeblocks()

getChannels

public int getChannels()
Description copied from interface: TagInfo
Get channels.

Specified by:
getChannels in interface TagInfo
Returns:
channels

getSamplingRate

public int getSamplingRate()
Description copied from interface: TagInfo
Get Sampling Rate

Specified by:
getSamplingRate in interface TagInfo
Returns:
sampling rate

getBitsPerSample

public int getBitsPerSample()

getTotalblocks

public int getTotalblocks()

getPlayTime

public long getPlayTime()
Description copied from interface: TagInfo
Get play time in seconds.

Specified by:
getPlayTime in interface TagInfo
Returns:
play time in seconds

getBitRate

public int getBitRate()
Description copied from interface: TagInfo
Get Nominal Bitrate

Specified by:
getBitRate in interface TagInfo
Returns:
bitrate in bps

getPeaklevel

public int getPeaklevel()

getTrack

public int getTrack()
Description copied from interface: TagInfo
Get the track number of this track on the album

Specified by:
getTrack in interface TagInfo
Returns:
the track number

getYear

public java.lang.String getYear()
Description copied from interface: TagInfo
Get the year the track was released

Specified by:
getYear in interface TagInfo
Returns:
the year the track was released

getGenre

public java.lang.String getGenre()
Description copied from interface: TagInfo
Get the genre string of the music

Specified by:
getGenre in interface TagInfo
Returns:
the genre string

getTitle

public java.lang.String getTitle()
Description copied from interface: TagInfo
Get the title of the song.

Specified by:
getTitle in interface TagInfo
Returns:
the title of the song

getArtist

public java.lang.String getArtist()
Description copied from interface: TagInfo
Get the artist that performed the song

Specified by:
getArtist in interface TagInfo
Returns:
the artist that performed the song

getAlbum

public java.lang.String getAlbum()
Description copied from interface: TagInfo
Get the name of the album upon which the song resides

Specified by:
getAlbum in interface TagInfo
Returns:
the album name

getComment

public java.util.Vector getComment()
Description copied from interface: TagInfo
Get any comments provided about the song

Specified by:
getComment in interface TagInfo
Returns:
the comments

getCopyright

public java.lang.String getCopyright()


JavaZOOM 1999-2006