|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dip.judge.parser.JudgeImport
Imports text or reads a file, that is a Judge history file or listing. A World object is created from that file, if successful.
Todo:
Field Summary | |
static java.lang.String |
JI_RESULT_LOADOTHER
|
static java.lang.String |
JI_RESULT_NEWWORLD
|
static java.lang.String |
JI_RESULT_THISWORLD
|
static java.lang.String |
JI_RESULT_TRYREWIND
|
Constructor Summary | |
JudgeImport(OrderFactory orderFactory,
java.io.File file,
World currentWorld)
Creates a JudgeImport object from a File |
|
JudgeImport(OrderFactory orderFactory,
java.io.Reader reader,
World currentWorld)
Creates a JudgeImport object from a generic Reader |
|
JudgeImport(OrderFactory orderFactory,
java.lang.String input)
Creates a JudgeImport object from a String |
Method Summary | |
java.lang.String |
getGameInfo()
|
java.lang.String |
getResult()
Returns if the creator of this JudgeImport object needs to create a new world, or if the current world is modified. |
World |
getWorld()
Returns the World object after successful parsing, or null if unsuccessfull. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String JI_RESULT_NEWWORLD
public static final java.lang.String JI_RESULT_TRYREWIND
public static final java.lang.String JI_RESULT_LOADOTHER
public static final java.lang.String JI_RESULT_THISWORLD
Constructor Detail |
public JudgeImport(OrderFactory orderFactory, java.io.File file, World currentWorld) throws java.io.IOException, java.util.regex.PatternSyntaxException
public JudgeImport(OrderFactory orderFactory, java.lang.String input) throws java.io.IOException, java.util.regex.PatternSyntaxException
public JudgeImport(OrderFactory orderFactory, java.io.Reader reader, World currentWorld) throws java.io.IOException, java.util.regex.PatternSyntaxException
Method Detail |
public World getWorld()
public java.lang.String getResult()
public java.lang.String getGameInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |