Package org.sunflow.core.parser
Class SCAbstractParser
java.lang.Object
org.sunflow.core.parser.SCAbstractParser
- All Implemented Interfaces:
SceneParser
- Direct Known Subclasses:
SCAsciiParser,SCBinaryParser
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidprotected abstract voidopenParser(String filename) booleanparse(String filename, SunflowAPIInterface api) Parse the specified file to create a scene description into the providedSunflowAPIobject.protected abstract booleanprotected abstract floatprotected float[]parseFloatArray(int size) protected abstract intparseInt()protected abstract ParameterList.InterpolationTypeprotected abstract SCAbstractParser.Keywordprotected abstract Matrix4protected abstract Stringprotected abstract String
-
Constructor Details
-
SCAbstractParser
public SCAbstractParser()
-
-
Method Details
-
parse
Description copied from interface:SceneParserParse the specified file to create a scene description into the providedSunflowAPIobject.- Specified by:
parsein interfaceSceneParser- Parameters:
filename- filename to parseapi- scene to parse the file into- Returns:
trueupon sucess, orfalseif errors have occured.
-
parseFloatArray
- Throws:
IOException
-
parseInterpolationType
- Throws:
IOException
-
openParser
- Throws:
IOException
-
closeParser
- Throws:
IOException
-
parseKeyword
- Throws:
IOException
-
parseBoolean
- Throws:
IOException
-
parseInt
- Throws:
IOException
-
parseFloat
- Throws:
IOException
-
parseString
- Throws:
IOException
-
parseVerbatimString
- Throws:
IOException
-
parseMatrix
- Throws:
IOException
-