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

Constructor Index

 o VRMLparser(InputStream)
create VRMLparser for specific input stream to read from.
 o VRMLparser(InputStream, ParserOutput)
VRMLparser constructor with message callbacks

Method Index

 o getNodeNames()
 o getVersion()
get VRML version; only valid after checkHeader or setVersion
 o 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
 o readBody()
read VRML body should not be called before readHeader or setVersion
 o readHeader()
check header of VRML data stream
 o readStream()
parse complete VRML stream (header + body)
 o setVersion(float)
set VRML version for headerless VRML stream

Constructors

 o 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)
 o VRMLparser
  public VRMLparser(InputStream input,
                    ParserOutput po)
VRMLparser constructor with message callbacks

Methods

 o setVersion
  public void setVersion(float ver)
set VRML version for headerless VRML stream
 o getVersion
  public float getVersion()
get VRML version; only valid after checkHeader or setVersion
 o 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
 o readStream
  public GroupNode readStream()
parse complete VRML stream (header + body)
Returns:
root node
See Also:
readHeader, readBody
 o readHeader
  public float readHeader()
check header of VRML data stream
Returns:
VRML version identifier or 0 on failure
 o readBody
  public GroupNode readBody()
read VRML body should not be called before readHeader or setVersion
 o getNodeNames
  public Hashtable getNodeNames()

All Packages  Class Hierarchy  This Package  Previous  Next  Index