Class DelimitedRecordParser

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String marshal​(java.lang.Object record)
      Marshals a single record object to a String.
      java.lang.String marshal​(java.lang.String[] record)
      Marshals a String array into a delimited record.
      java.lang.String[] unmarshal​(java.lang.String text)
      Unmarshals a single record.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DelimitedRecordParser

        public DelimitedRecordParser()
        Constructs a new DelimitedRecordParser.
      • DelimitedRecordParser

        public DelimitedRecordParser​(DelimitedParserConfiguration config)
        Constructs a new DelimitedRecordParser.
        Parameters:
        config - the parser configuration settings
    • Method Detail

      • unmarshal

        public java.lang.String[] unmarshal​(java.lang.String text)
        Description copied from interface: RecordUnmarshaller
        Unmarshals a single record.
        Specified by:
        unmarshal in interface RecordUnmarshaller
        Parameters:
        text - the record text to unmarshal
        Returns:
        the unmarshalled record object
      • marshal

        public java.lang.String marshal​(java.lang.Object record)
        Description copied from interface: RecordMarshaller
        Marshals a single record object to a String.
        Specified by:
        marshal in interface RecordMarshaller
        Parameters:
        record - the record object to marshal
        Returns:
        the marshalled record text
      • marshal

        public java.lang.String marshal​(java.lang.String[] record)
        Marshals a String array into a delimited record.
        Parameters:
        record - the String[] to marshal
        Returns:
        the formatted record text