public abstract class SCAbstractParser extends Object implements SceneParser
| Modifier and Type | Class and Description |
|---|---|
static class |
SCAbstractParser.Keyword |
| Constructor and Description |
|---|
SCAbstractParser() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
closeParser() |
protected abstract void |
openParser(String filename) |
boolean |
parse(String filename,
SunflowAPIInterface api)
Parse the specified file to create a scene description into the provided
SunflowAPI object. |
protected abstract boolean |
parseBoolean() |
protected abstract float |
parseFloat() |
protected float[] |
parseFloatArray(int size) |
protected abstract int |
parseInt() |
protected abstract ParameterList.InterpolationType |
parseInterpolationType() |
protected abstract SCAbstractParser.Keyword |
parseKeyword() |
protected abstract Matrix4 |
parseMatrix() |
protected abstract String |
parseString() |
protected abstract String |
parseVerbatimString() |
public boolean parse(String filename, SunflowAPIInterface api)
SceneParserSunflowAPI object.parse in interface SceneParserfilename - filename to parseapi - scene to parse the file intotrue upon sucess, or false if
errors have occured.protected float[] parseFloatArray(int size)
throws IOException
IOExceptionprotected abstract ParameterList.InterpolationType parseInterpolationType() throws IOException
IOExceptionprotected abstract void openParser(String filename) throws IOException
IOExceptionprotected abstract void closeParser()
throws IOException
IOExceptionprotected abstract SCAbstractParser.Keyword parseKeyword() throws IOException
IOExceptionprotected abstract boolean parseBoolean()
throws IOException
IOExceptionprotected abstract int parseInt()
throws IOException
IOExceptionprotected abstract float parseFloat()
throws IOException
IOExceptionprotected abstract String parseString() throws IOException
IOExceptionprotected abstract String parseVerbatimString() throws IOException
IOExceptionprotected abstract Matrix4 parseMatrix() throws IOException
IOExceptionCopyright © 2017. All rights reserved.