public class LineTokenizer
extends java.lang.Object
Constructor and Description |
---|
LineTokenizer(char [] text,
int startOffset,
int endOffset) |
LineTokenizer(java.lang.CharSequence text) |
Modifier and Type | Method and Description |
---|---|
void |
advance() |
boolean |
atEnd() |
static int |
calcLineCount(java.lang.CharSequence chars,
boolean skipLastEmptyLine) |
int |
getLength() |
int |
getLineSeparatorLength() |
int |
getOffset() |
static java.lang.String [] |
tokenize(char [] chars,
boolean includeSeparators) |
static java.lang.String [] |
tokenize(char [] chars,
boolean includeSeparators,
boolean skipLastEmptyLine) |
static java.lang.String [] |
tokenize(char [] chars,
int startOffset,
int endOffset,
boolean includeSeparators) |
static java.lang.String [] |
tokenize(char [] chars,
int startOffset,
int endOffset,
boolean includeSeparators,
boolean skipLastEmptyLine) |
static java.lang.String [] |
tokenize(java.lang.CharSequence chars,
boolean includeSeparators) |
static java.lang.String [] |
tokenize(java.lang.CharSequence chars,
boolean includeSeparators,
boolean skipLastEmptyLine) |
static java.util.List<java.lang.String> |
tokenizeIntoList(java.lang.CharSequence chars,
boolean includeSeparators) |
static java.util.List<java.lang.String> |
tokenizeIntoList(java.lang.CharSequence chars,
boolean includeSeparators,
boolean skipLastEmptyLine) |
public LineTokenizer(java.lang.CharSequence text)
public LineTokenizer(char [] text, int startOffset, int endOffset)
public static java.lang.String [] tokenize(java.lang.CharSequence chars, boolean includeSeparators)
public static java.lang.String [] tokenize(java.lang.CharSequence chars, boolean includeSeparators, boolean skipLastEmptyLine)
public static java.util.List<java.lang.String> tokenizeIntoList(java.lang.CharSequence chars, boolean includeSeparators)
public static java.util.List<java.lang.String> tokenizeIntoList(java.lang.CharSequence chars, boolean includeSeparators, boolean skipLastEmptyLine)
public static int calcLineCount(java.lang.CharSequence chars, boolean skipLastEmptyLine)
public static java.lang.String [] tokenize(char [] chars, boolean includeSeparators)
public static java.lang.String [] tokenize(char [] chars, boolean includeSeparators, boolean skipLastEmptyLine)
public static java.lang.String [] tokenize(char [] chars, int startOffset, int endOffset, boolean includeSeparators, boolean skipLastEmptyLine)
public static java.lang.String [] tokenize(char [] chars, int startOffset, int endOffset, boolean includeSeparators)
public final boolean atEnd()
public final int getOffset()
public final int getLength()
public final int getLineSeparatorLength()
public void advance()