com.codethesis.pgnparse
Class PGNSource

java.lang.Object
  extended by com.codethesis.pgnparse.PGNSource

public class PGNSource
extends java.lang.Object

Author:
Deyan Rizov

Constructor Summary
PGNSource(java.io.File file)
           
PGNSource(java.io.InputStream inputStream)
           
PGNSource(java.lang.String pgn)
           
PGNSource(java.net.URL url)
           
 
Method Summary
 java.util.List<PGNGame> listGames()
           
 java.util.List<PGNGame> listGames(boolean force)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PGNSource

public PGNSource(java.lang.String pgn)

PGNSource

public PGNSource(java.io.File file)
          throws java.io.IOException
Throws:
java.io.IOException

PGNSource

public PGNSource(java.net.URL url)
          throws java.io.IOException
Throws:
java.io.IOException

PGNSource

public PGNSource(java.io.InputStream inputStream)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

listGames

public java.util.List<PGNGame> listGames()
                                  throws PGNParseException,
                                         java.io.IOException,
                                         java.lang.NullPointerException,
                                         MalformedMoveException
Throws:
PGNParseException
java.io.IOException
java.lang.NullPointerException
MalformedMoveException

listGames

public java.util.List<PGNGame> listGames(boolean force)
                                  throws PGNParseException,
                                         java.io.IOException,
                                         java.lang.NullPointerException,
                                         MalformedMoveException
Throws:
PGNParseException
java.io.IOException
java.lang.NullPointerException
MalformedMoveException