com.melloware.jukes.file.tag
Class TagFactory
java.lang.Object
com.melloware.jukes.file.tag.TagFactory
public final class TagFactory
- extends 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getTag
public static MusicTag getTag(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:
MusicTagExeption - if any error occurs
MusicTagException
getTag
public static MusicTag getTag(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-2010 Melloware Inc. All Rights Reserved.