Class SuffixRecordSeparatorPolicy

    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      static java.lang.StringDEFAULT_SUFFIX
      Default value for record terminator suffix.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      booleanisEndOfRecord​(java.lang.String line)
      Return true if the line ends with the specified substring.
      java.lang.StringpostProcess​(java.lang.String record)
      Remove the suffix from the end of the record.
      voidsetIgnoreWhitespace​(boolean ignoreWhitespace)
      Flag to indicate that the decision to terminate a record should ignore whitespace at the end of the line.
      voidsetSuffix​(java.lang.String suffix)
      Lines ending in this terminator String signal the end of a record.
      • Methods inherited from class java.lang.Object

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

      • DEFAULT_SUFFIX

        public static final java.lang.String DEFAULT_SUFFIX
        Default value for record terminator suffix.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SuffixRecordSeparatorPolicy

        public SuffixRecordSeparatorPolicy()
    • Method Detail

      • setSuffix

        public void setSuffix​(java.lang.String suffix)
        Lines ending in this terminator String signal the end of a record.
        Parameters:
        suffix - suffix to indicate the end of a record
      • setIgnoreWhitespace

        public void setIgnoreWhitespace​(boolean ignoreWhitespace)
        Flag to indicate that the decision to terminate a record should ignore whitespace at the end of the line.
        Parameters:
        ignoreWhitespace - indicator