Class iicm.vrml.pw.VRMLparser
All Packages Class Hierarchy This Package Previous Next Index
Class iicm.vrml.pw.VRMLparser
java.lang.Object
|
+----iicm.vrml.pw.VRMLparser
- public class VRMLparser
- extends Object
VRMLparser - VRML parser class
Copyright (c) 1996,97 IICM
-
VRMLparser(InputStream)
- create VRMLparser for specific input stream to read from.
-
VRMLparser(InputStream, ParserOutput)
- VRMLparser constructor with message callbacks
-
getNodeNames()
-
-
getVersion()
- get VRML version; only valid after checkHeader or setVersion
-
isMovingWorlds()
- this parser is currently designed for VRML 2.0 only; this method
could be used to distinguish Moving World Scenes from VRML 1.0
-
readBody()
- read VRML body
should not be called before readHeader or setVersion
-
readHeader()
- check header of VRML data stream
-
readStream()
- parse complete VRML stream (header + body)
-
setVersion(float)
- set VRML version for headerless VRML stream
VRMLparser
public VRMLparser(InputStream input)
- create VRMLparser for specific input stream to read from.
(underlying parser buffers input stream itself.)
Note: will not return before 1st byte of InputStream is read (blocks)
VRMLparser
public VRMLparser(InputStream input,
ParserOutput po)
- VRMLparser constructor with message callbacks
setVersion
public void setVersion(float ver)
- set VRML version for headerless VRML stream
getVersion
public float getVersion()
- get VRML version; only valid after checkHeader or setVersion
isMovingWorlds
public boolean isMovingWorlds()
- this parser is currently designed for VRML 2.0 only; this method
could be used to distinguish Moving World Scenes from VRML 1.0
- Returns:
- flag, whether data is in Moving Worlds (VRML 2.0) format
readStream
public GroupNode readStream()
- parse complete VRML stream (header + body)
- Returns:
- root node
- See Also:
- readHeader, readBody
readHeader
public float readHeader()
- check header of VRML data stream
- Returns:
- VRML version identifier or 0 on failure
readBody
public GroupNode readBody()
- read VRML body
should not be called before readHeader or setVersion
getNodeNames
public Hashtable getNodeNames()
All Packages Class Hierarchy This Package Previous Next Index