Class StringParser
java.lang.Object
org.glassfish.pfl.basic.tools.file.StringParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseInt()Return int matched at current position as a string.booleanskipString(String str) skip over str, if str is at the current position.booleanskipToString(String str) skip everything until str is found.booleanSkip over whitespace.
-
Constructor Details
-
StringParser
-
-
Method Details
-
skipToString
skip everything until str is found. Returns true if found, otherwise false.- Parameters:
str- String for which we are looking- Returns:
- whether or not str was found
-
skipString
skip over str, if str is at the current position.- Parameters:
str- to skip (must be at current position)- Returns:
- whether or not str was at current position
-
skipWhitespace
public boolean skipWhitespace()Skip over whitespace. Returns true if some whitespace skipped.- Returns:
- whether some whitespace was skipped.
-
parseInt
Return int matched at current position as a string.
-