|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dip.judge.parser.ParserUtils
Utilities & Constants used by the parser classes
Field Summary | |
static int |
SHORT_LINE
Lines less than this long are ignored. |
Method Summary | |
static java.lang.String |
filter(java.lang.String in)
Coalesces whitespace, and ensures that it's only spaces and not any other type |
static java.lang.String |
getNextLongLine(java.io.BufferedReader br)
Gets the next non-short line from a buffered reader. |
static java.lang.String |
parseBlock(java.io.BufferedReader br)
Begins reading text line-by-line Starts with first non-short line, adds text until we get a blank line, returns text in-between. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SHORT_LINE
Method Detail |
public static java.lang.String parseBlock(java.io.BufferedReader br) throws java.io.IOException
Starts with first non-short line, adds text until we get a blank line, returns text in-between. Lines are trimmed.
java.io.IOException
public static java.lang.String filter(java.lang.String in)
public static java.lang.String getNextLongLine(java.io.BufferedReader br) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |