| 
 | Jala 1.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--jala.Mp3.Id3v2
   
This class represents an Id3v2 tag.
 
Defined in Mp3.js
   
| Constructor Summary | |
| 
	 
	    jala.Mp3.Id3v2 
	 
	 (audioObj)
      Constructs a new Id3v2 tag from an Mp3 file | |
| Method Summary | |
|  void | 
	    
	       copyFrom(tag)
	 Copies standard fields from another tag. | 
|  String | 
	    
	       getAlbum()
	 Returns the album information of the tag. | 
|  String | 
	    
	       getArtist()
	 Returns the artist information of the tag. | 
|  jala.Mp3 | 
	    
	       getAudio()
	 Returns the wrapper for the underlying audio file. | 
|  String | 
	    
	       getAuthor()
	 Returns the author information of the tag. | 
|  String | 
	    
	       getComment()
	 Returns the comment information of the tag. | 
|  String | 
	    
	       getCopyright()
	 Returns the copyright information of the tag. | 
|  String | 
	    
	       getGenre()
	 Returns the genre information of the tag. | 
|  helma.util.MimePart | 
	    
	       getImage(<String> pictureType)
	 Extracts the image from the tag | 
|  org.farng.mp3.id3.AbstractID3v2 | 
	    
	       getJavaObject()
	 returns the java representation of the tag, class depends on the actual library used. | 
|  String | 
	    
	       getSubtitle()
	 Returns the subtitle information of the tag. | 
|  Number | 
	    
	       getSubtype()
	 Returns the version number of this id3v2 (values 2 to 4 for id3v2.2 to id3v2.4) | 
|  String | 
	    
	       getTextContent(idStr)
	 This method can be used to retrieve an arbitrary text frame of the underlying tag. | 
|  Number | 
	    
	       getTextEncoding()
	 Returns the text encoding used when setting values. | 
|  String | 
	    
	       getTitle()
	 Returns the title information of the tag. | 
|  String | 
	    
	       getTrackNumber()
	 Returns the track number information of the tag. | 
|  String | 
	    
	       getUrl()
	 Returns the Url stored in this tag | 
|  String | 
	    
	       getYear()
	 Returns the year information of the tag. | 
|  void | 
	    
	       removeFromAudio()
	 Removes the tag from the audio file and nulls out the wrapper. | 
|  void | 
	    
	       setAlbum(<String> album)
	 Sets the album information. | 
|  void | 
	    
	       setArtist(<String> artist)
	 Sets the artist information. | 
|  void | 
	    
	       setAuthor(<String> author)
	 Sets the author information in this tag | 
|  void | 
	    
	       setComment(<String> comment)
	 Sets the comment | 
|  void | 
	    
	       setCopyright(<String> copyright)
	 Sets the copyright information in this tag | 
|  void | 
	    
	       setGenre(<String> genre)
	 Sets the genre information. | 
|  void | 
	    
	       setImage(<Number> pictureType, <String> mimeType, <Array> byteArray)
	 adds an image to the file. | 
|  void | 
	    
	       setSubtitle(<String> title)
	 Sets the subtitle information | 
|  String | 
	    
	       setTextContent(idStr, val)
	 This method can be used to set an arbitrary field of the underlying tag. | 
|  void | 
	    
	       setTextEncoding(<Number|String> encType)
	 sets the text encoding used when creating new frames (the encoding type of old frames can't be changed with JavaMusicTag) | 
|  void | 
	    
	       setTitle(<String> title)
	 Sets the title information | 
|  void | 
	    
	       setTrackNumber(<Number> trackNumber)
	 Sets the track number information. | 
|  void | 
	    
	       setUrl(<String> url, <String> desc)
	 Stores the Url passed as argument in this tag. | 
|  void | 
	    
	       setYear(<Number> year)
	 Sets the year information. | 
| Constructor Detail | 
jala.Mp3.Id3v2(audioObj)
mp3File -   
     | Method Detail | 
void copyFrom(tag)
src -  object with getter methods for fields album, artist,                      comment, title, trackNumber, genre and year.    
      String getAlbum()
String getArtist()
jala.Mp3 getAudio()
String getAuthor()
String getComment()
String getCopyright()
String getGenre()
helma.util.MimePart getImage(<String> pictureType)
pictureType -  number describing picture type                 (default is 3, describing a front cover).  
      org.farng.mp3.id3.AbstractID3v2 getJavaObject()
String getSubtitle()
Number getSubtype()
String getTextContent(idStr)
id -  Frame identifier according to Id3v2 specification                    or shortcut as defined in jala.Mp3.FIELD_MAPPING.  
      Number getTextEncoding()
String getTitle()
String getTrackNumber()
String getUrl()
String getYear()
void removeFromAudio()
void setAlbum(<String> album)
album -     
      void setArtist(<String> artist)
artist -     
      void setAuthor(<String> author)
author -  The author information to set    
      void setComment(<String> comment)
comment -     
      void setCopyright(<String> copyright)
copyright -  The copyright information to set    
      void setGenre(<String> genre)
genre -     
      void setImage(<Number> pictureType, <String> mimeType, <Array> byteArray)
pictureType -  number determining picture type  
      mimeType -  mime type of image  
      byteArray -  image binary data  
      desc -  optional description  
      void setSubtitle(<String> title)
title -     
      String setTextContent(idStr, val)
id -  Frame identifier according to Id3v2 specification  
      value -   
      void setTextEncoding(<Number|String> encType)
encType -  the new encoding type        as number or string  
      void setTitle(<String> title)
title -     
      void setTrackNumber(<Number> trackNumber)
trackNumber -     
      void setUrl(<String> url, <String> desc)
url -  The url to store in this tag  
      desc -  An optiona description of the Url    
      void setYear(<Number> year)
year -     
      | 
 | Jala 1.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||