org.sapia.cocoon.reading.i18n
Class i18nReader
java.lang.Object
org.sapia.cocoon.i18n.BaseI18nComponent
org.sapia.cocoon.reading.i18n.i18nReader
- All Implemented Interfaces:
- org.apache.cocoon.caching.CacheableProcessingComponent, org.apache.cocoon.reading.Reader, org.apache.cocoon.sitemap.SitemapModelComponent, org.apache.cocoon.sitemap.SitemapOutputComponent
public class i18nReader
- extends BaseI18nComponent
- implements org.apache.cocoon.reading.Reader, org.apache.cocoon.caching.CacheableProcessingComponent
A reader that output internationalized resources. It uses an algorithm
that is identical to the one of i18nGenerator.
Example Spring configuration:
Example Sitemap configuration:
- Author:
- yduchesne
- See Also:
i18nGenerator
| Fields inherited from interface org.apache.cocoon.reading.Reader |
ROLE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i18nReader
public i18nReader()
setOutputStream
public void setOutputStream(java.io.OutputStream out)
throws java.io.IOException
- Specified by:
setOutputStream in interface org.apache.cocoon.sitemap.SitemapOutputComponent
- Throws:
java.io.IOException
shouldSetContentLength
public boolean shouldSetContentLength()
- Specified by:
shouldSetContentLength in interface org.apache.cocoon.sitemap.SitemapOutputComponent
setup
public void setup(org.apache.cocoon.environment.SourceResolver resolver,
java.util.Map model,
java.lang.String src,
org.apache.avalon.framework.parameters.Parameters params)
throws org.apache.cocoon.ProcessingException,
org.xml.sax.SAXException,
java.io.IOException
- Specified by:
setup in interface org.apache.cocoon.sitemap.SitemapModelComponent- Overrides:
setup in class BaseI18nComponent
- Throws:
org.apache.cocoon.ProcessingException
org.xml.sax.SAXException
java.io.IOException
generate
public void generate()
throws java.io.IOException,
org.xml.sax.SAXException,
org.apache.cocoon.ProcessingException
- Specified by:
generate in interface org.apache.cocoon.reading.Reader
- Throws:
java.io.IOException
org.xml.sax.SAXException
org.apache.cocoon.ProcessingException
process
protected void process(org.apache.excalibur.source.Source src)
throws java.io.IOException
- Throws:
java.io.IOException
getLastModified
public long getLastModified()
- Specified by:
getLastModified in interface org.apache.cocoon.reading.Reader
getMimeType
public java.lang.String getMimeType()
- Specified by:
getMimeType in interface org.apache.cocoon.sitemap.SitemapOutputComponent
getKey
public java.io.Serializable getKey()
- Specified by:
getKey in interface org.apache.cocoon.caching.CacheableProcessingComponent
getValidity
public org.apache.excalibur.source.SourceValidity getValidity()
- Specified by:
getValidity in interface org.apache.cocoon.caching.CacheableProcessingComponent
Copyright © 2008. All Rights Reserved.