psdi.iface.load

Class FlatFileLoaderImpl



  • public class FlatFileLoaderImpl
    extends FileLoaderImpl
    Processing class for the file Loading in MAXIMO.
    • Constructor Detail

      • FlatFileLoaderImpl

        public FlatFileLoaderImpl(boolean preview,
                                  boolean fromClient,
                                  java.lang.String delimiter,
                                  java.lang.String textQualifier,
                                  boolean isFileExtract,
                                  java.lang.String fileName,
                                  java.lang.String processOwner)
                           throws MXException,
                                  java.rmi.RemoteException
        Construct the set
        Parameters:
        preview - boolean indicating whether it is a UI preview mode or not.
        fromClient - boolean indicating whether it is from UI import or crontask
        delimiter - delimiter chanracter for flatfile
        textQualifier - Text Qualifier
        isFileExtract - Indicates when File Extract feature is desired
        fileName - File name under process (used by file extract functionality)
        processOwner - Owner of this file load process (used by file extract functionality)
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • FlatFileLoaderImpl

        public FlatFileLoaderImpl(boolean preview,
                                  java.lang.String delimiter,
                                  java.lang.String textQualifier,
                                  java.lang.String action,
                                  java.lang.String transLangCode)
                           throws MXException,
                                  java.rmi.RemoteException
        Construct the set
        Parameters:
        preview - boolean indicating whether it is a UI preview mode or not.
        delimiter - delimiter chanracter for flatfile
        textQualifier - Text Qualifier
        action - action - Add,AddChange,Change, Replace, Delete
        transLangCode - Lang Code
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
    • Method Detail

      • processFlatData

        public void processFlatData(java.io.InputStream inStream,
                                    java.lang.String extSystemName,
                                    java.lang.String entServiceName,
                                    java.lang.Object recoveryService,
                                    MboRemote npMbo)
                             throws MXException
        Process Flat file.
        Parameters:
        inStream - InputStream of the file to be processed
        extSystemName - External System Name
        entServiceName - Enterprise Service name
        recoveryService - Recovery Service object
        Throws:
        MXException
      • writeToFile

        public void writeToFile(int lineNum)
                         throws java.io.IOException,
                                MXException
        writeToFile - Apple apar 250636
        Parameters:
        LineCount - of last record processed
        Throws:
        MXException
        java.io.IOException