INRIA & FluxMedia

fr.fluxmedia.transmorpher.stdlib
Class readfile

java.lang.Object
  |
  +--fr.fluxmedia.transmorpher.TProcessFactory.TProcess_Impl
        |
        +--fr.fluxmedia.transmorpher.TProcessFactory.TProcessBasic
              |
              +--fr.fluxmedia.transmorpher.TProcessFactory.TReader
                    |
                    +--fr.fluxmedia.transmorpher.stdlib.readfile
All Implemented Interfaces:
java.lang.Runnable, TProcess

public final class readfile
extends TReader

read 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


Field Summary
(package private)  java.lang.String iFilename
          The file name whish describe the file to read
(package private)  org.xml.sax.InputSource standardInput
           
 
Fields inherited from class fr.fluxmedia.transmorpher.TProcessFactory.TReader
DEFAULT_NAMESPACES, DEFAULT_NAMESPACES_PREFIXES, DEFAULT_SCHEMA_VALIDATION, DEFAULT_VALIDATION, iReader, isRunning, isThread, LEXICAL_HANDLER_PROPERTY_ID, myThread, NAMESPACES_FEATURE_ID, NAMESPACES_PREFIXES_FEATURE_ID, SCHEMA_VALIDATION_FEATURE_ID, VALIDATION_FEATURE_ID
 
Fields inherited from class fr.fluxmedia.transmorpher.TProcessFactory.TProcessBasic
type
 
Fields inherited from class fr.fluxmedia.transmorpher.TProcessFactory.TProcess_Impl
id, iListIn, iListOfParameters, iListOut, iName, iNbIn, iNbOut, nameFather, nameIn, nameOut
 
Constructor Summary
readfile(java.lang.String[] pOut, Parameters pParam, StringParameters pStaticAttributes)
           
 
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 read()
           
 void run()
           
 
Methods inherited from class fr.fluxmedia.transmorpher.TProcessFactory.TReader
generatePort, setThread
 
Methods inherited from class fr.fluxmedia.transmorpher.TProcessFactory.TProcessBasic
getType, setType
 
Methods inherited from class fr.fluxmedia.transmorpher.TProcessFactory.TProcess_Impl
bindParameters, getFatherName, getId, getIn, getIn, getIn, getName, getNameIn, getNameIn, getNameOut, getNameOut, getOut, getOut, getOut, getParameter, getParameterNames, getParameters, reset, setFatherName, setId, setIn, setName, setOut, setParameter, setParameters
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

iFilename

java.lang.String iFilename
The file name whish describe the file to read

standardInput

org.xml.sax.InputSource standardInput
Constructor Detail

readfile

public readfile(java.lang.String[] pOut,
                Parameters pParam,
                StringParameters pStaticAttributes)
         throws org.xml.sax.SAXException,
                java.io.IOException
Method Detail

execProcess

public void execProcess()
                 throws java.io.IOException,
                        org.xml.sax.SAXException
Exec the process :parse a file or an URL content
Overrides:
execProcess in class TReader

read

public void read()
          throws java.io.IOException,
                 org.xml.sax.SAXException

execProcess

public void execProcess(java.lang.String file)
                 throws java.io.IOException,
                        org.xml.sax.SAXException
Begins the parse of a file. This method is called inside a repeat . At each loop, file is changed.
Overrides:
execProcess in class TReader

run

public final void run()
Overrides:
run in class TReader

INRIA & FluxMedia

..no bottom yet...