org.apache.cocoon.generation
Class MP3DirectoryGenerator

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.xml.AbstractXMLProducer
          extended by org.apache.cocoon.generation.AbstractGenerator
              extended by org.apache.cocoon.generation.ServiceableGenerator
                  extended by org.apache.cocoon.generation.DirectoryGenerator
                      extended by org.apache.cocoon.generation.MP3DirectoryGenerator
All Implemented Interfaces:
Poolable, Recyclable, Disposable, Component, LogEnabled, Serviceable, CacheableProcessingComponent, Generator, SitemapModelComponent, XMLProducer

public class MP3DirectoryGenerator
extends DirectoryGenerator

Version:
CVS $Id: MP3DirectoryGenerator.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Vadim Gritsenko

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cocoon.generation.DirectoryGenerator
DirectoryGenerator.DirValidity
 
Field Summary
protected static String MP3_ALBUM_ATTR_NAME
           
protected static String MP3_ARTIST_ATTR_NAME
           
protected static String MP3_BITRATE_ATTR_NAME
           
protected static String MP3_COMMENT_ATTR_NAME
           
protected static String MP3_FREQUENCY_ATTR_NAME
           
protected static String MP3_GENRE_ATTR_NAME
           
protected static String MP3_MODE_ATTR_NAME
           
protected static String MP3_TITLE_ATTR_NAME
           
protected static String MP3_TRACK_ATTR_NAME
           
protected static String MP3_VBR_ATTR_NAME
           
protected static String MP3_YEAR_ATTR_NAME
           
 
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 class org.apache.cocoon.generation.ServiceableGenerator
manager
 
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.generation.Generator
ROLE
 
Constructor Summary
MP3DirectoryGenerator()
           
 
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 org.apache.cocoon.generation.ServiceableGenerator
dispose, service
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Field Detail

MP3_FREQUENCY_ATTR_NAME

protected static final String MP3_FREQUENCY_ATTR_NAME
See Also:
Constant Field Values

MP3_BITRATE_ATTR_NAME

protected static final String MP3_BITRATE_ATTR_NAME
See Also:
Constant Field Values

MP3_MODE_ATTR_NAME

protected static final String MP3_MODE_ATTR_NAME
See Also:
Constant Field Values

MP3_VBR_ATTR_NAME

protected static final String MP3_VBR_ATTR_NAME
See Also:
Constant Field Values

MP3_TITLE_ATTR_NAME

protected static final String MP3_TITLE_ATTR_NAME
See Also:
Constant Field Values

MP3_ARTIST_ATTR_NAME

protected static final String MP3_ARTIST_ATTR_NAME
See Also:
Constant Field Values

MP3_ALBUM_ATTR_NAME

protected static final String MP3_ALBUM_ATTR_NAME
See Also:
Constant Field Values

MP3_YEAR_ATTR_NAME

protected static final String MP3_YEAR_ATTR_NAME
See Also:
Constant Field Values

MP3_COMMENT_ATTR_NAME

protected static final String MP3_COMMENT_ATTR_NAME
See Also:
Constant Field Values

MP3_TRACK_ATTR_NAME

protected static final String MP3_TRACK_ATTR_NAME
See Also:
Constant Field Values

MP3_GENRE_ATTR_NAME

protected static final String MP3_GENRE_ATTR_NAME
See Also:
Constant Field Values
Constructor Detail

MP3DirectoryGenerator

public MP3DirectoryGenerator()
Method Detail

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-2010 The Apache Software Foundation. All Rights Reserved.