|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.fluxmedia.transmorpher.engine.TProcess_Impl
fr.fluxmedia.transmorpher.engine.TProcessBasic
fr.fluxmedia.tmcontrib.external.Log
public class Log
The main goal of this class is debugging. A log component can be add in a SAX events flow in order to print these events in a file.
Field Summary | |
---|---|
protected java.lang.String |
fileName
Description of the Field |
(package private) org.xml.sax.ContentHandler |
inHandler
|
private java.io.FileWriter |
logfile
|
(package private) org.xml.sax.ContentHandler |
outHandler
|
Fields inherited from class fr.fluxmedia.transmorpher.engine.TProcessBasic |
---|
finished, isThread, param, procThread, type |
Fields inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl |
---|
debug, id, iListIn, iListOut, iNbIn, iNbOut, nameFather, nameIn, nameOut |
Constructor Summary | |
---|---|
Log(java.lang.String[] pIn,
java.lang.String[] pOut,
Parameters params,
StringParameters staticParams)
Constructor for the Log object |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
the characters method of content handler interface |
void |
endDocument()
the endDocument method of content handler interface |
void |
endElement(java.lang.String ns,
java.lang.String localName,
java.lang.String name)
the endElement method of content handler interface |
void |
endPrefixMapping(java.lang.String prefix)
the endPrefixMapping method of content handler interface |
void |
generatePort()
Description of the Method |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
the ignorableWhitespace method of content handler interface |
private void |
printLog(java.lang.String method,
java.lang.String content)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
the processingInstruction method of content handler interface |
void |
setContentHandler(org.xml.sax.ContentHandler handler)
Sets the contentHandler attribute of the Log object |
void |
setDocumentLocator(org.xml.sax.Locator locator)
the setDocumentLocator method of content handler interface |
void |
skippedEntity(java.lang.String name)
the skippedEntity method of content handler interface |
void |
startDocument()
the startDocument method of content handler interface |
void |
startElement(java.lang.String ns,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes atts)
the start element method of content handler interface |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
the startPrefixMapping method of content handler interface |
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcessBasic |
---|
execProcess, getFinished, getType, initParameters, run, setFinished, setThread, setType |
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl |
---|
bindParameters, getFatherName, getId, getIn, getIn, getIn, getName, getNameIn, getNameIn, getNameOut, getNameOut, getOut, getOut, getOut, getParameter, getParameterNames, getParameters, reset, setDebug, setFatherName, setId, setIn, setName, setOut, setParameter, setParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.fluxmedia.transmorpher.engine.TProcess |
---|
bindParameters, getFatherName, getIn, getIn, getIn, getName, getNameIn, getNameIn, getNameOut, getNameOut, getOut, getOut, getOut, getParameter, getParameters, reset, setDebug, setFatherName, setIn, setName, setOut, setParameter, setParameters |
Field Detail |
---|
org.xml.sax.ContentHandler outHandler
org.xml.sax.ContentHandler inHandler
protected java.lang.String fileName
private java.io.FileWriter logfile
Constructor Detail |
---|
public Log(java.lang.String[] pIn, java.lang.String[] pOut, Parameters params, StringParameters staticParams) throws org.xml.sax.SAXException, java.io.IOException
pIn
- Description of the ParameterpOut
- Description of the Parameterparams
- Description of the ParameterstaticParams
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exception
java.io.IOException
- Description of the ExceptionMethod Detail |
---|
public void generatePort()
generatePort
in interface TProcess
generatePort
in class TProcess_Impl
public void setContentHandler(org.xml.sax.ContentHandler handler)
setContentHandler
in interface TApplyExternal
handler
- The new contentHandler valuepublic final void startElement(java.lang.String ns, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
ns
- Description of the ParameterlocalName
- Description of the Parametername
- Description of the Parameteratts
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionpublic final void endElement(java.lang.String ns, java.lang.String localName, java.lang.String name) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
ns
- Description of the ParameterlocalName
- Description of the Parametername
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionpublic final void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
locator
- The new documentLocator valuepublic final void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
- Description of the Exceptionpublic final void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
- Description of the Exceptionpublic final void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
name
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionpublic final void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
target
- Description of the Parameterdata
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionpublic final void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
ch
- Description of the Parameterstart
- Description of the Parameterlength
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionpublic final void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
ch
- Description of the Parameterstart
- Description of the Parameterlength
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionpublic final void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
prefix
- Description of the Parameteruri
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionpublic final void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
prefix
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionprivate void printLog(java.lang.String method, java.lang.String content)
method
- Description of the Parametercontent
- Description of the Parameter
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |