Class LineTokenizer
- java.lang.Object
-
- jetbrains.buildServer.vcs.patches.diff.LineTokenizer
-
public class LineTokenizer extends Object
-
-
Constructor Summary
Constructors Constructor Description LineTokenizer(CharSequence text)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
advance()
boolean
atEnd()
int
getLength()
int
getLineSeparatorLength()
int
getOffset()
static String[]
tokenize(char[] chars, boolean includeSeparators)
static String[]
tokenize(char[] chars, boolean includeSeparators, boolean skipLastEmptyLine)
static String[]
tokenize(char[] chars, int startOffset, int endOffset, boolean includeSeparators)
static String[]
tokenize(char[] chars, int startOffset, int endOffset, boolean includeSeparators, boolean skipLastEmptyLine)
static String[]
tokenize(CharSequence chars, boolean includeSeparators)
static String[]
tokenize(CharSequence chars, boolean includeSeparators, boolean skipLastEmptyLine)
static List<String>
tokenizeIntoList(CharSequence chars, boolean includeSeparators)
static List<String>
tokenizeIntoList(CharSequence chars, boolean includeSeparators, boolean skipLastEmptyLine)
-
-
-
Constructor Detail
-
LineTokenizer
public LineTokenizer(@NotNull CharSequence text)
-
-
Method Detail
-
tokenize
@NotNull public static String[] tokenize(CharSequence chars, boolean includeSeparators)
-
tokenize
@NotNull public static String[] tokenize(CharSequence chars, boolean includeSeparators, boolean skipLastEmptyLine)
-
tokenizeIntoList
@NotNull public static List<String> tokenizeIntoList(CharSequence chars, boolean includeSeparators)
-
tokenizeIntoList
@NotNull public static List<String> tokenizeIntoList(CharSequence chars, boolean includeSeparators, boolean skipLastEmptyLine)
-
tokenize
@NotNull public static String[] tokenize(@NotNull char[] chars, boolean includeSeparators)
-
tokenize
@NotNull public static String[] tokenize(@NotNull char[] chars, boolean includeSeparators, boolean skipLastEmptyLine)
-
tokenize
@NotNull public static String[] tokenize(@NotNull char[] chars, int startOffset, int endOffset, boolean includeSeparators, boolean skipLastEmptyLine)
-
tokenize
@NotNull public static String[] tokenize(@NotNull char[] chars, int startOffset, int endOffset, boolean includeSeparators)
-
atEnd
public final boolean atEnd()
-
getOffset
public final int getOffset()
-
getLength
public final int getLength()
-
getLineSeparatorLength
public final int getLineSeparatorLength()
-
advance
public void advance()
-
-