org.apache.cocoon.pipeline.component.sax
Class FileReaderComponent
java.lang.Object
org.apache.cocoon.pipeline.component.AbstractPipelineComponent
org.apache.cocoon.pipeline.component.sax.FileReaderComponent
- All Implemented Interfaces:
- CachingPipelineComponent, Finisher, PipelineComponent, Starter
public class FileReaderComponent
- extends AbstractPipelineComponent
- implements Starter, Finisher, CachingPipelineComponent
FileReaderComponent
public FileReaderComponent()
FileReaderComponent
public FileReaderComponent(URL source)
constructCacheKey
public CacheKey constructCacheKey()
-
- Specified by:
constructCacheKey
in interface CachingPipelineComponent
- See Also:
CachingPipelineComponent.constructCacheKey()
execute
public void execute()
-
- Specified by:
execute
in interface Starter
- See Also:
Starter.execute()
getContentType
public String getContentType()
-
- Specified by:
getContentType
in interface Finisher
- See Also:
Finisher.getContentType()
setConfiguration
public void setConfiguration(Map<String,? extends Object> configuration)
-
- Specified by:
setConfiguration
in interface PipelineComponent
- Overrides:
setConfiguration
in class AbstractPipelineComponent
- See Also:
PipelineComponent.setConfiguration(java.util.Map)
setMimeType
public void setMimeType(String mimeType)
- Set the mime-type directly which is useful when this component is used directly.
- Parameters:
mimeType
- The mime-type that belongs to the content that is produced by this component.
setSource
public void setSource(URL source)
- Set the source
URL
directly when this component is used directly.
- Parameters:
source
- A URL
that will be used by this component.
setOutputStream
public void setOutputStream(OutputStream outputStream)
-
- Specified by:
setOutputStream
in interface Finisher
- See Also:
Finisher.setOutputStream(java.io.OutputStream)
toString
public String toString()
-
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2008 The Apache Software Foundation. All Rights Reserved.