com.etasoft.trans.io
Class axIOFactory

java.lang.Object
  extended bycom.etasoft.trans.io.axIOFactory

public class axIOFactory
extends java.lang.Object

Factory for creating reader and writer objects.


Constructor Summary
axIOFactory()
           
 
Method Summary
 axReaderIterator createReaderIterator(axInputParameters inputParams)
          Construct Reader here.
 axWriter createWriter(axMapRoot mapRoot, java.lang.String inputPath, axInputParameters inputParams)
          Construct Writer here.
 java.lang.String getCurrentDataPath()
           
 java.lang.String getCurrentTime()
          Internal current time in HHMM format.
 axIOMetaData getMetaData(java.lang.String section)
          Get meta data about the file or query.
 boolean hasNextReader(axMapRoot mapRoot)
          Check do we have next file name.
 boolean isAvailable()
          Check is file, ftp file or database connection is available.
 java.lang.String replaceMacros(java.lang.String dataPath, java.lang.String inputPath)
          Replace macros in DataPath with actual string expressions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

axIOFactory

public axIOFactory()
Method Detail

getCurrentDataPath

public java.lang.String getCurrentDataPath()

hasNextReader

public boolean hasNextReader(axMapRoot mapRoot)
                      throws axException
Check do we have next file name.

Throws:
axException

isAvailable

public boolean isAvailable()
Check is file, ftp file or database connection is available. Can be used to detect availability of the file or database connection.


getMetaData

public axIOMetaData getMetaData(java.lang.String section)
                         throws java.lang.Exception
Get meta data about the file or query. Can be used to detect certain features of the file or query, table.

Throws:
java.lang.Exception

createReaderIterator

public axReaderIterator createReaderIterator(axInputParameters inputParams)
                                      throws axException
Construct Reader here.

Throws:
axException

createWriter

public axWriter createWriter(axMapRoot mapRoot,
                             java.lang.String inputPath,
                             axInputParameters inputParams)
                      throws axException
Construct Writer here.

Throws:
axException

replaceMacros

public java.lang.String replaceMacros(java.lang.String dataPath,
                                      java.lang.String inputPath)
Replace macros in DataPath with actual string expressions


getCurrentTime

public java.lang.String getCurrentTime()
Internal current time in HHMM format.