|
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.transmorpher.engine.TReader
public abstract class 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). |
protected java.lang.String |
iFilename
Name of the file to read |
protected org.xml.sax.InputSource |
inSource
Description of the Field |
protected 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). |
protected org.xml.sax.InputSource |
standardInput
Description of the Field |
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 |
---|
finished, isThread, param, 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 |
org.xml.sax.InputSource |
getInputSource()
Gets the inputSource attribute of the TReader object |
java.io.InputStream |
getInputStream()
Gets the inputStream attribute of the TReader object |
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 |
---|
getFinished, getType, initParameters, 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 |
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
protected org.xml.sax.XMLReader iReader
public boolean isRunning
private java.lang.Exception raisedException
protected java.lang.String iFilename
protected org.xml.sax.InputSource standardInput
protected org.xml.sax.InputSource inSource
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 Parameter
org.xml.sax.SAXException
- can wrap others exceptions
java.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 failed
org.xml.sax.SAXException
- can wrap others exceptions
TMRuntimeException
- any error that implementations want to raisepublic void execProcess(java.lang.String file) throws TMRuntimeException
file
- the name of the file to parse
TMRuntimeException
- Description of the Exceptionpublic void generatePort()
generatePort
in interface TProcess
generatePort
in class TProcess_Impl
public final void run()
run
in interface java.lang.Runnable
run
in class TProcessBasic
public abstract void read() throws java.io.IOException, org.xml.sax.SAXException, TMRuntimeException
java.io.IOException
- if an IO operations failed
org.xml.sax.SAXException
- can wrap others exceptions
TMRuntimeException
- any error that implementations want to raisepublic org.xml.sax.InputSource getInputSource()
public java.io.InputStream getInputStream()
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |