|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.pipeline.component.AbstractPipelineComponent org.apache.cocoon.sax.AbstractSAXPipelineComponent org.apache.cocoon.sax.AbstractSAXProducer org.apache.cocoon.sax.AbstractSAXTransformer org.apache.cocoon.sax.component.LogTransformer
public final class LogTransformer
Transformer that can be plugged into a pipeline to print the SAX events which passes through this transformer in a readable form to a file or sysout. This class is not thread-safe!
Constructor Summary | |
---|---|
LogTransformer()
Anonimous constructor, used in sitemap declaration. |
|
LogTransformer(File logFile,
boolean append)
|
|
LogTransformer(File logFile,
boolean append,
SimpleDateFormat dateFormat)
|
|
LogTransformer(File logFile,
boolean append,
String datePattern)
|
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(String uri,
String localName,
String name)
|
void |
endEntity(String name)
|
void |
endPrefixMapping(String prefix)
|
org.apache.cocoon.xml.sax.SAXBuffer |
endSAXRecording()
Stop recording of SAX events. |
void |
finish()
This method is called after pipeline run - regardless if the run was successful or an exception was thrown. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(String target,
String data)
|
void |
setConfiguration(Map<String,? extends Object> configuration)
Pass component specific configuration parameters to the pipeline component in a generic way. |
void |
setDocumentLocator(Locator locator)
|
void |
setup(Map<String,Object> parameters)
The shared object map for this pipeline run. |
void |
skippedEntity(String name)
|
void |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(String name,
String publicId,
String systemId)
|
void |
startElement(String uri,
String localName,
String name,
Attributes atts)
|
void |
startEntity(String name)
|
void |
startPrefixMapping(String prefix,
String uri)
|
void |
startSAXRecording()
Start recording of SAX events. |
Methods inherited from class org.apache.cocoon.sax.AbstractSAXTransformer |
---|
endTextRecording, findPrefixMapping, removeRecorder, sendEndPrefixMapping, sendStartPrefixMapping, setRecorder, startTextRecording |
Methods inherited from class org.apache.cocoon.sax.AbstractSAXProducer |
---|
getSAXConsumer, setConsumer, setSAXConsumer, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LogTransformer()
public LogTransformer(File logFile, boolean append) throws IOException
IOException
public LogTransformer(File logFile, boolean append, String datePattern) throws IOException
IOException
public LogTransformer(File logFile, boolean append, SimpleDateFormat dateFormat) throws IOException
IOException
Method Detail |
---|
public void setConfiguration(Map<String,? extends Object> configuration)
PipelineComponent
setConfiguration
in interface PipelineComponent
setConfiguration
in class AbstractPipelineComponent
configuration
- The Map
of configuration parameters.public void setup(Map<String,Object> parameters)
PipelineComponent
setup
in interface PipelineComponent
setup
in class AbstractPipelineComponent
parameters
- A Map
of parameters that are available to all
PipelineComponent
s. This is a modifiable map that can
be changed by this pipeline component.public void finish()
PipelineComponent
finish
in interface PipelineComponent
finish
in class AbstractPipelineComponent
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class AbstractSAXTransformer
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
comment
in class AbstractSAXTransformer
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
endCDATA
in class AbstractSAXTransformer
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class AbstractSAXTransformer
SAXException
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
endDTD
in class AbstractSAXTransformer
SAXException
public void endElement(String uri, String localName, String name) throws SAXException
endElement
in interface ContentHandler
endElement
in class AbstractSAXTransformer
SAXException
public void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
endEntity
in class AbstractSAXTransformer
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
endPrefixMapping
in class AbstractSAXTransformer
SAXException
public org.apache.cocoon.xml.sax.SAXBuffer endSAXRecording() throws SAXException
AbstractSAXTransformer
endSAXRecording
in class AbstractSAXTransformer
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class AbstractSAXTransformer
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
processingInstruction
in class AbstractSAXTransformer
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class AbstractSAXTransformer
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
skippedEntity
in class AbstractSAXTransformer
SAXException
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
startCDATA
in class AbstractSAXTransformer
SAXException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class AbstractSAXTransformer
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
startDTD
in class AbstractSAXTransformer
SAXException
public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class AbstractSAXTransformer
SAXException
public void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
startEntity
in class AbstractSAXTransformer
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class AbstractSAXTransformer
SAXException
public void startSAXRecording() throws SAXException
AbstractSAXTransformer
AbstractSAXTransformer.endSAXRecording()
call.
startSAXRecording
in class AbstractSAXTransformer
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |