Class LineBasedAdapter

  • All Implemented Interfaces:
    AdapterInterface, java.io.Serializable
    Direct Known Subclasses:
    CSVLineBasedAdapter

    public abstract class LineBasedAdapter
    extends SimpleAdapter

    Abstract adapter dedicated to line based input streams
    The only method to implement is the single line level processLine() method

    See Also:
    Serialized Form
    • Constructor Detail

      • LineBasedAdapter

        public LineBasedAdapter()
    • Method Detail

      • process

        public void process()
                     throws java.lang.InterruptedException

        Iterates input stream as individual lines
        Each line is passed to the processLine() method for processing

        Throws:
        java.lang.InterruptedException
      • processLine

        public abstract java.lang.String processLine​(long lineNumber,
                                                     java.lang.String line)
                                              throws PlatformException,
                                                     java.lang.InterruptedException

        Line processing to override

        Parameters:
        lineNumber - Input line number (1 is the first line)
        line - Input line
        Returns:
        Processed line as XML statements or null
        Throws:
        PlatformException
        java.lang.InterruptedException