Added possibility to skip token stream until the end
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Mon, 25 Dec 2017 11:34:04 +0000 (13:34 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Mon, 25 Dec 2017 11:34:04 +0000 (13:34 +0200)
src/main/java/eu/svjatoslav/commons/string/tokenizer/Tokenizer.java

index 80f9c4f..c80aeb1 100755 (executable)
@@ -198,4 +198,9 @@ public class Tokenizer {
         currentIndex = tokenIndexes.pop();
     }
 
+    public void skipUntilDataEnd() {
+        tokenIndexes.push(currentIndex);
+        currentIndex = source.length();
+    }
+
 }