Package edu.odu.cs.zeil.codegrader
Class StringParser
- java.lang.Object
-
- edu.odu.cs.zeil.codegrader.StringParser
-
-
Constructor Summary
Constructors Constructor Description StringParser()
Create a string parser in which all whitespace is included in the value.StringParser(boolean trim)
Create a string parser with the option of trimming leading and ending whitespace.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
parse(java.lang.String input)
Convert a string into an object of the desired type.
-
-
-
Constructor Detail
-
StringParser
public StringParser()
Create a string parser in which all whitespace is included in the value.
-
StringParser
public StringParser(boolean trim)
Create a string parser with the option of trimming leading and ending whitespace.- Parameters:
trim
- should whitespace be trimmed?
-
-