de.axelwernicke.mypod.util
Class ID3Utils

java.lang.Object
  extended byde.axelwernicke.mypod.util.ID3Utils

public class ID3Utils
extends java.lang.Object

This class provides some helper methods to read and write id3 tags

Author:
axel wernicke

Method Summary
 ID3Utils getInstance()
          Gets an instance of the ID3Utils class.
static MP3MetaV2 reScanMp3(MP3MetaV2 mp3Meta)
          Rescans an mp3 file and updates the meta data.
static MP3MetaV2 scanMp3(java.io.File file)
          Scan mp3 file for id3 and other meta data
static void updateMp3VdHeide(MP3MetaV2 origMeta, MP3MetaV2 metaToSet)
          Updates the id3 tags ( v1 & v2.3 ) of an mp3 clip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public ID3Utils getInstance()
Gets an instance of the ID3Utils class.

Returns:
instance of ID3Utils class

scanMp3

public static MP3MetaV2 scanMp3(java.io.File file)
Scan mp3 file for id3 and other meta data

Parameters:
file - to scan
Returns:
mp3 meta data for the file

reScanMp3

public static MP3MetaV2 reScanMp3(MP3MetaV2 mp3Meta)
Rescans an mp3 file and updates the meta data.

Parameters:
mp3Meta - to rescan
Returns:
re scanned mp3 meta

updateMp3VdHeide

public static void updateMp3VdHeide(MP3MetaV2 origMeta,
                                    MP3MetaV2 metaToSet)
Updates the id3 tags ( v1 & v2.3 ) of an mp3 clip

Parameters:
origMeta - original meta data of the clip
metaToSet - meta data to set, values are set if they are not null (strings) or -1 (numbers)