public final class SgfReader
extends java.lang.Object
Constructor and Description |
---|
SgfReader(java.io.InputStream in,
java.io.File file,
ProgressShow progressShow,
long size)
Read SGF file from stream.
|
Modifier and Type | Method and Description |
---|---|
GameTree |
getTree()
Get game tree of loaded SGF file.
|
java.lang.String |
getWarnings()
Get warnings that occurred during loading SGF file.
|
public SgfReader(java.io.InputStream in, java.io.File file, ProgressShow progressShow, long size) throws SgfError
in
- Stream to read from.file
- File name if input stream is a FileInputStream to allow
reopening the stream after a charset changeprogressShow
- Callback to show progress, can be nullsize
- Size of stream if progressShow != nullSgfError
- If reading fails.public GameTree getTree()
public java.lang.String getWarnings()