com.melloware.jukes.file.tag
Class TagFactory

java.lang.Object
  extended by com.melloware.jukes.file.tag.TagFactory

public final class TagFactory
extends java.lang.Object

Implements the Factory pattern for creating instances of music tag objects. Determines, at runtime, based on the file ending which type of music tag to created. MP3Tag's for .mp3 files, AudioFileTag's for .ogg, .flac, .spx, .ape.

Copyright (c) 2006 Melloware, Inc.

Version:
4.0
Author:
Emil A. Lefkof III

Method Summary
static MusicTag getTag(java.io.File aFile)
          Gets the proper music tag type based on aFile.
static MusicTag getTag(java.lang.String aFileLocation)
          Gets the proper music tag type based on aFile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTag

public static MusicTag getTag(java.io.File aFile)
                       throws MusicTagException
Gets the proper music tag type based on aFile.

Parameters:
aFile - the file to load
Returns:
MusicTag the tag loaded
Throws:
MusicTagExcption - if any error occurs
MusicTagException

getTag

public static MusicTag getTag(java.lang.String aFileLocation)
                       throws MusicTagException
Gets the proper music tag type based on aFile.

Parameters:
aFileLocation - the file path
Returns:
MusicTag the tag loaded
Throws:
MusicTagExcption - if any error occurs
MusicTagException


Copyright © 1999-2008 Melloware Inc. All Rights Reserved.