|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.loaders.c3d.C3DParser
public class C3DParser
A low-level parser for the C3D file format.
The output of this parser is the parameter block and streams of data expressed as Java float arrays.
The definition of the file format can be found at: http://www.c3d.org/
Constructor Summary | |
---|---|
C3DParser()
Construct a new parser with no stream set. |
|
C3DParser(java.io.InputStream is)
Construct a new parser using the given stream to source the data from. |
Method Summary | |
---|---|
void |
clear()
Force a clear of the data that has been previous read by this parser. |
C3DAnalogData[] |
getAnalogSamples()
Get the last parsed set of analog samples. |
C3DHeader |
getHeader()
Get the last parsed file header information. |
C3DParameterGroup[] |
getParameters()
Get the last parsed set of parameter groups. |
C3DTrajectoryData[] |
getTrajectories()
Get the last parsed set of trajectories. |
void |
parse(boolean retainData)
Parse the stream now and start generating the output. |
void |
reset(java.io.InputStream is)
Reset the parser to use the new stream. |
void |
setErrorReporter(ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the parsing internals can be reported in a nice, pretty fashion. |
void |
setParseObserver(C3DParseObserver obs)
Set the observer for parsing events that can be used with this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public C3DParser()
public C3DParser(java.io.InputStream is)
is
- The stream to read data fromMethod Detail |
---|
public void setErrorReporter(ErrorReporter reporter)
reporter
- The instance to use or nullpublic void setParseObserver(C3DParseObserver obs)
obs
- The observer instance to usepublic C3DHeader getHeader()
public C3DParameterGroup[] getParameters()
public C3DTrajectoryData[] getTrajectories()
public C3DAnalogData[] getAnalogSamples()
public void clear()
public void reset(java.io.InputStream is)
is
- The new stream to usepublic void parse(boolean retainData) throws java.io.IOException
retainData
- true if the parser should maintain a copy of all the
data read locally
java.io.IOException
- some problem reading the basic file.
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |