net.shredzone.ifish.ltr
Class TagAsf

java.lang.Object
  extended by net.shredzone.ifish.ltr.LTR
      extended by net.shredzone.ifish.ltr.TagAsf

public class TagAsf
extends LTR

Decodes an ASF/WMA stream. It uses parts of the Entagged software, which is copyrighted by the Entagged Development Team, and published under LGPL.

Version:
$Id: TagAsf.java 289 2009-04-28 21:21:46Z shred $

Field Summary
 
Fields inherited from class net.shredzone.ifish.ltr.LTR
factory, in
 
Constructor Summary
TagAsf(RandomAccessFile in, File file, LTRFactory factory)
          Create a new TagAsf object.
 
Method Summary
 String getAlbum()
          Get the album.
 String getArtist()
          Get the artist.
 String getComment()
          Get the comment.
 String getGenre()
          Get the genre.
 String getTitle()
          Get the title.
 String getTrack()
          Get the track.
 String getType()
          Get the type of this file.
 String getYear()
          Get the year.
 
Methods inherited from class net.shredzone.ifish.ltr.LTR
readStringLen, readStringLen, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagAsf

public TagAsf(RandomAccessFile in,
              File file,
              LTRFactory factory)
       throws FormatDecodeException
Create a new TagAsf object.

Parameters:
in - File to read
file - Reference to the file itself
factory - Reference to the LTRFactory
Throws:
FormatDecodeException - Couldn't decode this file
Method Detail

getType

public String getType()
Get the type of this file. This is usually the compression format itself (e.g. "OGG" or "MP3"). If there are different taggings for this format, the used tag format is appended after a slash (e.g. "MP3/id3v2").

Specified by:
getType in class LTR
Returns:
The type

getArtist

public String getArtist()
Get the artist.

Specified by:
getArtist in class LTR
Returns:
The artist (never null)

getAlbum

public String getAlbum()
Get the album.

Specified by:
getAlbum in class LTR
Returns:
The album (never null)

getTitle

public String getTitle()
Get the title.

Specified by:
getTitle in class LTR
Returns:
The title (never null)

getGenre

public String getGenre()
Get the genre.

Specified by:
getGenre in class LTR
Returns:
The genre (never null)

getYear

public String getYear()
Get the year.

Specified by:
getYear in class LTR
Returns:
The year (never null)

getComment

public String getComment()
Get the comment.

Specified by:
getComment in class LTR
Returns:
The comment (never null)

getTrack

public String getTrack()
Get the track.

Specified by:
getTrack in class LTR
Returns:
The track (never null)


Copyright © 2007-2011 shredzone.org. All Rights Reserved.