Package org.sunflow.core.parser
Class SCBinaryParser
- java.lang.Object
-
- org.sunflow.core.parser.SCAbstractParser
-
- org.sunflow.core.parser.SCBinaryParser
-
- All Implemented Interfaces:
SceneParser
public class SCBinaryParser extends SCAbstractParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sunflow.core.parser.SCAbstractParser
SCAbstractParser.Keyword
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.DataInputStream
stream
-
Constructor Summary
Constructors Constructor Description SCBinaryParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
closeParser()
protected void
openParser(java.lang.String filename)
protected boolean
parseBoolean()
protected float
parseFloat()
protected int
parseInt()
protected ParameterList.InterpolationType
parseInterpolationType()
protected SCAbstractParser.Keyword
parseKeyword()
protected Matrix4
parseMatrix()
protected java.lang.String
parseString()
protected java.lang.String
parseVerbatimString()
-
Methods inherited from class org.sunflow.core.parser.SCAbstractParser
parse, parseFloatArray
-
-
-
-
Method Detail
-
closeParser
protected void closeParser() throws java.io.IOException
- Specified by:
closeParser
in classSCAbstractParser
- Throws:
java.io.IOException
-
openParser
protected void openParser(java.lang.String filename) throws java.io.IOException
- Specified by:
openParser
in classSCAbstractParser
- Throws:
java.io.IOException
-
parseBoolean
protected boolean parseBoolean() throws java.io.IOException
- Specified by:
parseBoolean
in classSCAbstractParser
- Throws:
java.io.IOException
-
parseFloat
protected float parseFloat() throws java.io.IOException
- Specified by:
parseFloat
in classSCAbstractParser
- Throws:
java.io.IOException
-
parseInt
protected int parseInt() throws java.io.IOException
- Specified by:
parseInt
in classSCAbstractParser
- Throws:
java.io.IOException
-
parseMatrix
protected Matrix4 parseMatrix() throws java.io.IOException
- Specified by:
parseMatrix
in classSCAbstractParser
- Throws:
java.io.IOException
-
parseString
protected java.lang.String parseString() throws java.io.IOException
- Specified by:
parseString
in classSCAbstractParser
- Throws:
java.io.IOException
-
parseVerbatimString
protected java.lang.String parseVerbatimString() throws java.io.IOException
- Specified by:
parseVerbatimString
in classSCAbstractParser
- Throws:
java.io.IOException
-
parseInterpolationType
protected ParameterList.InterpolationType parseInterpolationType() throws java.io.IOException
- Specified by:
parseInterpolationType
in classSCAbstractParser
- Throws:
java.io.IOException
-
parseKeyword
protected SCAbstractParser.Keyword parseKeyword() throws java.io.IOException
- Specified by:
parseKeyword
in classSCAbstractParser
- Throws:
java.io.IOException
-
-