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 boolean
equals(Object o)
Indicates whether some other object is equal to this one.char
getCharacter()
Returns the character used to separate values.int
getEscape()
Returns the character used to escape character literals, or-1
if none.int
getQuote()
Returns the character used to quote string literals, or-1
if none.int
hashCode()
-
-
-
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.
-
-