dip.judge.parser
Class JudgeImport

java.lang.Object
  extended bydip.judge.parser.JudgeImport

public class JudgeImport
extends java.lang.Object

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

JI_RESULT_NEWWORLD

public static final java.lang.String JI_RESULT_NEWWORLD
See Also:
Constant Field Values

JI_RESULT_TRYREWIND

public static final java.lang.String JI_RESULT_TRYREWIND
See Also:
Constant Field Values

JI_RESULT_LOADOTHER

public static final java.lang.String JI_RESULT_LOADOTHER
See Also:
Constant Field Values

JI_RESULT_THISWORLD

public static final java.lang.String JI_RESULT_THISWORLD
See Also:
Constant Field Values
Constructor Detail

JudgeImport

public JudgeImport(OrderFactory orderFactory,
                   java.io.File file,
                   World currentWorld)
            throws java.io.IOException,
                   java.util.regex.PatternSyntaxException
Creates a JudgeImport object from a File


JudgeImport

public JudgeImport(OrderFactory orderFactory,
                   java.lang.String input)
            throws java.io.IOException,
                   java.util.regex.PatternSyntaxException
Creates a JudgeImport object from a String


JudgeImport

public JudgeImport(OrderFactory orderFactory,
                   java.io.Reader reader,
                   World currentWorld)
            throws java.io.IOException,
                   java.util.regex.PatternSyntaxException
Creates a JudgeImport object from a generic Reader

Method Detail

getWorld

public World getWorld()
Returns the World object after successful parsing, or null if unsuccessfull.


getResult

public 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.


getGameInfo

public java.lang.String getGameInfo()


Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.