Package org.forgerock.openig.text
Class Separator
- java.lang.Object
-
- org.forgerock.openig.text.Separator
-
public class Separator extends Object
A field separator specification, used to parse delimiter-separated values.
-
-
Constructor Summary
Constructors Constructor Description Separator(char character, int quote, int escape)Constructs a new field separator specification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Indicates whether some other object is equal to this one.chargetCharacter()Returns the character used to separate values.intgetEscape()Returns the character used to escape character literals, or-1if none.intgetQuote()Returns the character used to quote string literals, or-1if none.inthashCode()
-
-
-
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-1if none.escape- the character used to escape character literals, or-1if 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-1if none.- Returns:
- the character used to quote string literals, or
-1if none.
-
getEscape
public int getEscape()
Returns the character used to escape character literals, or-1if none.- Returns:
- the character used to escape character literals, or
-1if none.
-
equals
public boolean equals(Object o)
Indicates whether some other object is equal to this one.
-
-