|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fr.fluxmedia.transmorpher.engine.TProcess_Impl | +--fr.fluxmedia.transmorpher.engine.TProcessBasic | +--fr.fluxmedia.transmorpher.engine.TReader
This class provide a basic process which is able to read an XML file
Field Summary | |
protected static boolean |
DEFAULT_NAMESPACES
Default namespaces support (true). |
protected static boolean |
DEFAULT_NAMESPACES_PREFIXES
Default namespaces support (true). |
protected static boolean |
DEFAULT_SCHEMA_VALIDATION
Default Schema validation support (false). |
protected static boolean |
DEFAULT_VALIDATION
Default validation support (false). |
java.lang.String |
iFilename
Name of the file to read |
org.xml.sax.XMLReader |
iReader
The XMLReader |
boolean |
isRunning
Description of the Field |
protected static java.lang.String |
LEXICAL_HANDLER_PROPERTY_ID
Lexical handler property id (http://xml.org/sax/properties/lexical-handler). |
protected static java.lang.String |
NAMESPACES_FEATURE_ID
Namespaces feature id (http://xml.org/sax/features/namespaces). |
protected static java.lang.String |
NAMESPACES_PREFIXES_FEATURE_ID
Namespaces feature id (http://xml.org/sax/features/namespaces). |
private java.lang.Exception |
raisedException
An exception raised during thread processing |
protected static java.lang.String |
SCHEMA_VALIDATION_FEATURE_ID
Schema validation feature id (http://apache.org/xml/features/validation/schema). |
org.xml.sax.InputSource |
standardInput
|
protected static java.lang.String |
VALIDATION_FEATURE_ID
Validation feature id (http://xml.org/sax/features/validation). |
Fields inherited from class fr.fluxmedia.transmorpher.engine.TProcessBasic |
isThread, procThread, type |
Fields inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl |
debug, id, iListIn, iListOfParameters, iListOut, iName, iNbIn, iNbOut, nameFather, nameIn, nameOut |
Constructor Summary | |
TReader(java.lang.String[] pOut,
Parameters pParam,
StringParameters pStaticAttributes)
Constructor for the TReader object |
Method Summary | |
void |
execProcess()
Exec the process :parse a file or an URL content |
void |
execProcess(java.lang.String file)
Begins the parse of a file. |
void |
generatePort()
Generates port for this component |
java.lang.Exception |
getRaisedException()
return eventualy raised exception during thread execution |
abstract void |
read()
This is the only method a developper has to implement in order to create a new reader. |
void |
run()
Main processing method for the TReader object |
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcessBasic |
getType, 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 |
|
Field Detail |
protected static final java.lang.String NAMESPACES_FEATURE_ID
protected static final java.lang.String NAMESPACES_PREFIXES_FEATURE_ID
protected static final java.lang.String VALIDATION_FEATURE_ID
protected static final java.lang.String SCHEMA_VALIDATION_FEATURE_ID
protected static final java.lang.String LEXICAL_HANDLER_PROPERTY_ID
protected static final boolean DEFAULT_NAMESPACES
protected static final boolean DEFAULT_NAMESPACES_PREFIXES
protected static final boolean DEFAULT_VALIDATION
protected static final boolean DEFAULT_SCHEMA_VALIDATION
public org.xml.sax.XMLReader iReader
public boolean isRunning
private java.lang.Exception raisedException
public java.lang.String iFilename
public org.xml.sax.InputSource standardInput
Constructor Detail |
public TReader(java.lang.String[] pOut, Parameters pParam, StringParameters pStaticAttributes) throws org.xml.sax.SAXException, java.io.IOException
pOut
- Description of the ParameterpParam
- Description of the ParameterpStaticAttributes
- Description of the Parameterorg.xml.sax.SAXException
- can wrap others exceptionsjava.io.IOException
- if an IO operation failedMethod Detail |
public java.lang.Exception getRaisedException()
public void execProcess() throws java.io.IOException, org.xml.sax.SAXException, TMRuntimeException
execProcess
in class TProcessBasic
java.io.IOException
- if an IO operation failedorg.xml.sax.SAXException
- can wrap others exceptionsTMRuntimeException
- any error that implementations want to raisepublic void execProcess(java.lang.String file) throws TMRuntimeException
file
- the name of the file to parsejava.io.IOException
- if an IO operation failedorg.xml.sax.SAXException
- can wrap others exceptionspublic void generatePort()
generatePort
in class TProcess_Impl
public final void run()
run
in class TProcessBasic
public abstract void read() throws java.io.IOException, org.xml.sax.SAXException, TMRuntimeException
java.io.IOException
- if an IO operations failedorg.xml.sax.SAXException
- can wrap others exceptionsTMRuntimeException
- any error that implementations want to raise
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |