Class Separator


  • public class Separator
    extends Object
    A field separator specification, used to parse delimiter-separated values.
    • Constructor Detail

      • Separator

        public Separator​(char character,
                         int quote,
                         int escape)
        Constructs a new field separator specification.
        Parameters:
        character - the character used to separate values.
        quote - the character used to quote string literals, or -1 if none.
        escape - the character used to escape character literals, or -1 if none.
    • Method Detail

      • getCharacter

        public char getCharacter()
        Returns the character used to separate values.
        Returns:
        the character used to separate values.
      • getQuote

        public int getQuote()
        Returns the character used to quote string literals, or -1 if none.
        Returns:
        the character used to quote string literals, or -1 if none.
      • getEscape

        public int getEscape()
        Returns the character used to escape character literals, or -1 if none.
        Returns:
        the character used to escape character literals, or -1 if none.
      • equals

        public boolean equals​(Object o)
        Indicates whether some other object is equal to this one.
        Overrides:
        equals in class Object
        Parameters:
        o - the reference object with which to compare.
        Returns:
        true if this object is the same as the obj argument.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object