Class FixedRecordParser

    • Constructor Detail

      • FixedRecordParser

        public FixedRecordParser()
    • Method Detail

      • initParser

        public void initParser()
        This method is called by the hosting component (e.g. connector) to initialize the parser.
        Specified by:
        initParser in interface ParserInterface
        Overrides:
        initParser in class ParserImpl
      • readEntry

        public Entry readEntry()
                        throws java.lang.Exception
        Return the next entry from the current input stream.
        Returns:
        The next entry from the input stream
        Throws:
        java.lang.Exception - if an I/O error occurs.
      • writeEntry

        public void writeEntry​(Entry e)
                        throws java.lang.Exception
        Write an entry to the current output stream.
        Parameters:
        e - The entry to write
        Throws:
        java.lang.Exception - if an I/O error occurs.
      • querySchema

        public java.lang.Object querySchema​(java.lang.Object source)
                                     throws java.lang.Exception
        Discover the schema for the Parser. For example, a XML Parser could return a representation of the XML Schema or the DTD referenced in a XML file.
        Specified by:
        querySchema in interface ParserInterface
        Overrides:
        querySchema in class ParserImpl
        Parameters:
        source - The object on which to discover schema
        Returns:
        A Vector of com.ibm.di.entry.Entry objects describing each entity
        Throws:
        java.lang.Exception - If an I/O error occurs
        Since:
        7.0
      • getVersion

        public java.lang.String getVersion()
        Version information.
        Returns:
        version information