INRIA & FluxMedia

fr.fluxmedia.transmorpher.stdlib
Class ReadFile

java.lang.Object
  extended by fr.fluxmedia.transmorpher.engine.TProcess_Impl
      extended by fr.fluxmedia.transmorpher.engine.TProcessBasic
          extended by fr.fluxmedia.transmorpher.engine.TReader
              extended by fr.fluxmedia.transmorpher.stdlib.ReadFile
All Implemented Interfaces:
TProcess, java.lang.Runnable

public final class ReadFile
extends TReader

This class provide a basic process which is able to read an XML file reads a file which coordinates (local path or URL) is give in the file parameter of the generate call, parse it and generate a SAX event flow to the next handler

Since:
jdk 1.3 && SAX 2.0
Author:
Laurent.Tardif@inrialpes.fr

Field Summary
 
Fields inherited from class fr.fluxmedia.transmorpher.engine.TReader
DEFAULT_NAMESPACES, DEFAULT_NAMESPACES_PREFIXES, DEFAULT_SCHEMA_VALIDATION, DEFAULT_VALIDATION, iFilename, inSource, iReader, isRunning, LEXICAL_HANDLER_PROPERTY_ID, NAMESPACES_FEATURE_ID, NAMESPACES_PREFIXES_FEATURE_ID, SCHEMA_VALIDATION_FEATURE_ID, standardInput, VALIDATION_FEATURE_ID
 
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
ReadFile(java.lang.String[] pOut, Parameters pParam, StringParameters pStaticAttributes)
          Constructor for the ReadFile object
 
Method Summary
 void read()
          Description of the Method
 
Methods inherited from class fr.fluxmedia.transmorpher.engine.TReader
execProcess, execProcess, generatePort, getInputSource, getInputStream, getRaisedException, run
 
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
 

Constructor Detail

ReadFile

public ReadFile(java.lang.String[] pOut,
                Parameters pParam,
                StringParameters pStaticAttributes)
         throws org.xml.sax.SAXException,
                java.io.IOException
Constructor for the ReadFile object

Parameters:
pOut - Description of the Parameter
pParam - Description of the Parameter
pStaticAttributes - Description of the Parameter
Throws:
org.xml.sax.SAXException - Description of the Exception
java.io.IOException - Description of the Exception
Method Detail

read

public void read()
          throws java.io.IOException,
                 org.xml.sax.SAXException
Description of the Method

Specified by:
read in class TReader
Throws:
java.io.IOException - if an IO operations failed
org.xml.sax.SAXException - can wrap others exceptions

INRIA & FluxMedia

..no bottom yet...