Class DelimitedRecordParserFactory

    • Constructor Detail

      • DelimitedRecordParserFactory

        public DelimitedRecordParserFactory()
    • Method Detail

      • init

        public void init()
                  throws java.lang.IllegalArgumentException
        Description copied from interface: RecordParserFactory
        Initializes the factory. This method is called when a mapping file is loaded after all parser properties have been set, and is therefore ideally used to preemptively validate parser configuration settings.
        Specified by:
        init in interface RecordParserFactory
        Throws:
        java.lang.IllegalArgumentException - if the parser configuration is invalid
      • createReader

        public RecordReader createReader​(java.io.Reader in)
                                  throws java.lang.IllegalArgumentException
        Description copied from interface: RecordParserFactory
        Creates a parser for reading records from an input stream.
        Specified by:
        createReader in interface RecordParserFactory
        Parameters:
        in - the input stream to read from
        Returns:
        the created RecordReader
        Throws:
        java.lang.IllegalArgumentException - if this factory is improperly configured and a RecordReader cannot be created
      • createWriter

        public RecordWriter createWriter​(java.io.Writer out)
                                  throws java.lang.IllegalArgumentException
        Description copied from interface: RecordParserFactory
        Creates a parser for writing records to an output stream.
        Specified by:
        createWriter in interface RecordParserFactory
        Parameters:
        out - the output stream to write to
        Returns:
        the new RecordWriter
        Throws:
        java.lang.IllegalArgumentException - if this factory is improperly configured and a RecordWriter cannot be created