Constructor and Description |
---|
LineParser(Reader reader,
char[][] lineSeparators) |
LineParser(String text,
char[][] lineSeparators) |
Modifier and Type | Method and Description |
---|---|
boolean |
cacheNextLine() |
void |
close() |
void |
consume() |
void |
consume(int count) |
void |
consumeWhitespace() |
void |
consumeWhitespace(char[] exception) |
void |
consumeWhitespace(CharSequence exception) |
void |
consumeWhitespace(int exception) |
DataException |
exception(Throwable exception) |
long |
getColumn() |
char[] |
getLastLineSeparator() |
long |
getLine() |
String |
getLineText() |
String |
getRemainingLineText() |
void |
match(char expectedChar) |
void |
match(char[] expectedString) |
void |
match(char[] expectedString,
String failureMessage) |
void |
match(CharSequence expectedString) |
void |
match(CharSequence expectedString,
String failureMessage) |
void |
match(char expectedChar,
String failureMessage) |
StringBuilder |
matchUntil(char terminatingChar) |
StringBuilder |
matchUntil(char terminatingChar,
String failureMessage) |
StringBuilder |
matchUntilEof() |
void |
nextLine() |
void |
nextLine(String failureMessage) |
int |
peek(int index) |
CharSequence |
peekSequence(int offset,
int length) |
boolean |
peekString(char[] lookahead) |
boolean |
peekString(CharSequence lookahead) |
int |
peekStringArray(char[][] lookahead) |
int |
peekStringArray(char[][] lookahead,
int offset) |
int |
peekStringArray(CharSequence... lookahead) |
int |
peekStringArray(CharSequence[] lookahead,
int offset) |
boolean |
peekStringOffset(char[] lookahead,
int offset) |
boolean |
peekStringOffset(CharSequence lookahead,
int offset) |
int |
peekWhitespaceLength(int index) |
int |
pop() |
boolean |
ready() |
LineParser |
setLineSeparators(char[][] lineSeparators) |
String |
toString() |
public LineParser(Reader reader, char[][] lineSeparators)
public LineParser(String text, char[][] lineSeparators)
public DataException exception(Throwable exception)
public LineParser setLineSeparators(char[][] lineSeparators)
public char[] getLastLineSeparator()
public boolean cacheNextLine()
public boolean ready() throws IOException
ready
in interface IParser
IOException
public long getLine()
public String getLineText()
public String getRemainingLineText()
public int peekWhitespaceLength(int index)
peekWhitespaceLength
in interface IParser
public CharSequence peekSequence(int offset, int length)
peekSequence
in interface IParser
public boolean peekString(CharSequence lookahead)
peekString
in interface IParser
public boolean peekString(char[] lookahead)
peekString
in interface IParser
public boolean peekStringOffset(CharSequence lookahead, int offset)
peekStringOffset
in interface IParser
public boolean peekStringOffset(char[] lookahead, int offset)
peekStringOffset
in interface IParser
public int peekStringArray(CharSequence... lookahead)
peekStringArray
in interface IParser
public int peekStringArray(CharSequence[] lookahead, int offset)
peekStringArray
in interface IParser
public int peekStringArray(char[][] lookahead)
peekStringArray
in interface IParser
public int peekStringArray(char[][] lookahead, int offset)
peekStringArray
in interface IParser
public void nextLine()
public void nextLine(String failureMessage)
public void match(char expectedChar, String failureMessage)
public void match(CharSequence expectedString, String failureMessage)
public void match(char[] expectedString, String failureMessage)
public void match(CharSequence expectedString)
public StringBuilder matchUntil(char terminatingChar)
matchUntil
in interface IParser
public StringBuilder matchUntil(char terminatingChar, String failureMessage)
matchUntil
in interface IParser
public StringBuilder matchUntilEof()
matchUntilEof
in interface IParser
public void consumeWhitespace()
consumeWhitespace
in interface IParser
public void consumeWhitespace(int exception)
consumeWhitespace
in interface IParser
public void consumeWhitespace(CharSequence exception)
consumeWhitespace
in interface IParser
public void consumeWhitespace(char[] exception)
consumeWhitespace
in interface IParser
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.