org.apache.cocoon.generation
Class MP3DirectoryGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.apache.cocoon.generation.DirectoryGenerator
org.apache.cocoon.generation.MP3DirectoryGenerator
- All Implemented Interfaces:
- CacheableProcessingComponent, Disposable, Generator, LogEnabled, Poolable, Recyclable, Serviceable, SitemapModelComponent, XMLProducer
- public class MP3DirectoryGenerator
- extends DirectoryGenerator
- Version:
- CVS $Id: MP3DirectoryGenerator.java 225254 2005-07-26 08:02:05Z cziegeler $
- Author:
- Vadim Gritsenko
- Cocoon.sitemap.component.documentation:
- An extension of DirectoryGenerators that adds extra attributes for MP3
files.
- Cocoon.sitemap.component.documentation.caching:
- Uses the last modification date of the directory and the contained files
- Cocoon.sitemap.component.label:
- content
- Cocoon.sitemap.component.logger:
- sitemap.generator.mp3directory
- Cocoon.sitemap.component.name:
- mp3directory
Fields inherited from class org.apache.cocoon.generation.DirectoryGenerator |
attributes, cacheKeyParList, DATE_ATTR_NAME, dateFormatter, depth, DIR_NODE_NAME, directorySource, excludeRE, FILE_NODE_NAME, FILENAME_ATTR_NAME, includeRE, isRequestedDirectory, LASTMOD_ATTR_NAME, PREFIX, refreshDelay, reverse, rootRE, SIZE_ATTR_NAME, sort, URI, validity |
Fields inherited from interface org.apache.cocoon.generation.Generator |
ROLE |
Method Summary |
protected void |
setNodeAttributes(File path)
Extends the setNodeAttributes method from the
DirectoryGenerator by adding MP3 tag attributes
if the path is a MP3 file with valid tag. |
Methods inherited from class org.apache.cocoon.generation.DirectoryGenerator |
addAncestorPath, addPath, endNode, generate, getAncestors, getKey, getValidity, isExcluded, isIncluded, isRoot, recycle, setup, startNode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MP3_FREQUENCY_ATTR_NAME
protected static String MP3_FREQUENCY_ATTR_NAME
MP3_BITRATE_ATTR_NAME
protected static String MP3_BITRATE_ATTR_NAME
MP3_MODE_ATTR_NAME
protected static String MP3_MODE_ATTR_NAME
MP3_VBR_ATTR_NAME
protected static String MP3_VBR_ATTR_NAME
MP3_TITLE_ATTR_NAME
protected static String MP3_TITLE_ATTR_NAME
MP3_ARTIST_ATTR_NAME
protected static String MP3_ARTIST_ATTR_NAME
MP3_ALBUM_ATTR_NAME
protected static String MP3_ALBUM_ATTR_NAME
MP3_YEAR_ATTR_NAME
protected static String MP3_YEAR_ATTR_NAME
MP3_COMMENT_ATTR_NAME
protected static String MP3_COMMENT_ATTR_NAME
MP3_TRACK_ATTR_NAME
protected static String MP3_TRACK_ATTR_NAME
MP3_GENRE_ATTR_NAME
protected static String MP3_GENRE_ATTR_NAME
MP3DirectoryGenerator
public MP3DirectoryGenerator()
setNodeAttributes
protected void setNodeAttributes(File path)
throws SAXException
- Extends the
setNodeAttributes
method from the
DirectoryGenerator
by adding MP3 tag attributes
if the path is a MP3 file with valid tag.
- Overrides:
setNodeAttributes
in class DirectoryGenerator
- Parameters:
path
- the file/directory to use when setting attributes
- Throws:
SAXException
- if an error occurs while setting the attributes
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.