entagged.audioformats.generic
Class GenericTag

java.lang.Object
  extended by entagged.audioformats.generic.AbstractTag
      extended by entagged.audioformats.generic.GenericTag
All Implemented Interfaces:
Tag
Direct Known Subclasses:
Id3v1Tag, WavTag

public class GenericTag
extends AbstractTag

This is a complete impelementation of AbstractTag.
The identifiers of commonly used fields is defined by keys.

Author:
Raphaël Slinckx

Field Summary
static int ALBUM
          Index for the "album"-identifier in keys.
static int ARTIST
          Index for the "artist"-identifier in keys.
static int COMMENT
          Index for the "comment"-identifier in keys.
static int GENRE
          Index for the "genre"-identifier in keys.
static int TITLE
          Index for the "title"-identifier in keys.
static int TRACK
          Index for the "track"-identifier in keys.
static int YEAR
          Index for the "year"-identifier in keys.
 
Fields inherited from class entagged.audioformats.generic.AbstractTag
commonNumber, fields
 
Fields inherited from interface entagged.audioformats.Tag
DEFAULT_GENRES
 
Constructor Summary
GenericTag()
           
 
Method Summary
protected  TagField createAlbumField(String content)
          (overridden)
protected  TagField createArtistField(String content)
          (overridden)
protected  TagField createCommentField(String content)
          (overridden)
protected  TagField createGenreField(String content)
          (overridden)
protected  TagField createTitleField(String content)
          (overridden)
protected  TagField createTrackField(String content)
          (overridden)
protected  TagField createYearField(String content)
          (overridden)
protected  String getAlbumId()
          (overridden)
protected  String getArtistId()
          (overridden)
protected  String getCommentId()
          (overridden)
protected  String getGenreId()
          (overridden)
protected  String getTitleId()
          (overridden)
protected  String getTrackId()
          (overridden)
protected  String getYearId()
          (overridden)
protected  boolean isAllowedEncoding(String enc)
          (overridden)
 
Methods inherited from class entagged.audioformats.generic.AbstractTag
add, addAlbum, addArtist, addComment, addGenre, addTitle, addTrack, addYear, get, getAlbum, getArtist, getComment, getFields, getFirstAlbum, getFirstArtist, getFirstComment, getFirstGenre, getFirstTitle, getFirstTrack, getFirstYear, getGenre, getTitle, getTrack, getYear, hasCommonFields, hasField, isEmpty, merge, set, setAlbum, setArtist, setComment, setEncoding, setGenre, setTitle, setTrack, setYear, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALBUM

public static final int ALBUM
Index for the "album"-identifier in keys.

See Also:
Constant Field Values

ARTIST

public static final int ARTIST
Index for the "artist"-identifier in keys.

See Also:
Constant Field Values

COMMENT

public static final int COMMENT
Index for the "comment"-identifier in keys.

See Also:
Constant Field Values

GENRE

public static final int GENRE
Index for the "genre"-identifier in keys.

See Also:
Constant Field Values

TITLE

public static final int TITLE
Index for the "title"-identifier in keys.

See Also:
Constant Field Values

TRACK

public static final int TRACK
Index for the "track"-identifier in keys.

See Also:
Constant Field Values

YEAR

public static final int YEAR
Index for the "year"-identifier in keys.

See Also:
Constant Field Values
Constructor Detail

GenericTag

public GenericTag()
Method Detail

createAlbumField

protected TagField createAlbumField(String content)
(overridden)

Specified by:
createAlbumField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "album"
See Also:
AbstractTag.createAlbumField(java.lang.String)

createArtistField

protected TagField createArtistField(String content)
(overridden)

Specified by:
createArtistField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "artist"
See Also:
AbstractTag.createArtistField(java.lang.String)

createCommentField

protected TagField createCommentField(String content)
(overridden)

Specified by:
createCommentField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "comment"
See Also:
AbstractTag.createCommentField(java.lang.String)

createGenreField

protected TagField createGenreField(String content)
(overridden)

Specified by:
createGenreField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "genre"
See Also:
AbstractTag.createGenreField(java.lang.String)

createTitleField

protected TagField createTitleField(String content)
(overridden)

Specified by:
createTitleField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "title"
See Also:
AbstractTag.createTitleField(java.lang.String)

createTrackField

protected TagField createTrackField(String content)
(overridden)

Specified by:
createTrackField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "track"
See Also:
AbstractTag.createTrackField(java.lang.String)

createYearField

protected TagField createYearField(String content)
(overridden)

Specified by:
createYearField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "year"
See Also:
AbstractTag.createYearField(java.lang.String)

getAlbumId

protected String getAlbumId()
(overridden)

Specified by:
getAlbumId in class AbstractTag
Returns:
identifier for the "album" field.
See Also:
AbstractTag.getAlbumId()

getArtistId

protected String getArtistId()
(overridden)

Specified by:
getArtistId in class AbstractTag
Returns:
identifier for the "artist" field.
See Also:
AbstractTag.getArtistId()

getCommentId

protected String getCommentId()
(overridden)

Specified by:
getCommentId in class AbstractTag
Returns:
identifier for the "comment" field.
See Also:
AbstractTag.getCommentId()

getGenreId

protected String getGenreId()
(overridden)

Specified by:
getGenreId in class AbstractTag
Returns:
identifier for the "genre" field.
See Also:
AbstractTag.getGenreId()

getTitleId

protected String getTitleId()
(overridden)

Specified by:
getTitleId in class AbstractTag
Returns:
identifier for the "title" field.
See Also:
AbstractTag.getTitleId()

getTrackId

protected String getTrackId()
(overridden)

Specified by:
getTrackId in class AbstractTag
Returns:
identifier for the "track" field.
See Also:
AbstractTag.getTrackId()

getYearId

protected String getYearId()
(overridden)

Specified by:
getYearId in class AbstractTag
Returns:
identifier for the "year" field.
See Also:
AbstractTag.getYearId()

isAllowedEncoding

protected boolean isAllowedEncoding(String enc)
(overridden)

Specified by:
isAllowedEncoding in class AbstractTag
Parameters:
enc - charset encoding.
Returns:
true if the given encoding can be used.
See Also:
AbstractTag.isAllowedEncoding(java.lang.String)


Copyright © 2007-2008. All Rights Reserved.