Class LineTokenizer


  • public class LineTokenizer
    extends Object
    • 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()