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) VRMLparser(InputStream)
-  create VRMLparser for specific input stream to read from.
  
-   VRMLparser(InputStream, ParserOutput) VRMLparser(InputStream, ParserOutput)
-  VRMLparser constructor with message callbacks
   
  -   getNodeNames() getNodeNames()
-  
  
-   getVersion() getVersion()
-  get VRML version; only valid after checkHeader or setVersion
  
-   isMovingWorlds() 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() readBody()
-  read VRML body
should not be called before readHeader or setVersion
  
-   readHeader() readHeader()
-  check header of VRML data stream
  
-   readStream() readStream()
-  parse complete VRML stream (header + body)
  
-   setVersion(float) setVersion(float)
-  set VRML version for headerless VRML stream
   
 VRMLparser
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
VRMLparser
  public VRMLparser(InputStream input,
                    ParserOutput po)
  -  VRMLparser constructor with message callbacks
   
 setVersion
setVersion
  public void setVersion(float ver)
  -  set VRML version for headerless VRML stream
 getVersion
getVersion
  public float getVersion()
  -  get VRML version; only valid after checkHeader or setVersion
 isMovingWorlds
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
readStream
  public GroupNode readStream()
  -  parse complete VRML stream (header + body)
  
    -  Returns:
    
-  root node
    
-  See Also:
    
-  readHeader, readBody
  
 
 readHeader
readHeader
  public float readHeader()
  -  check header of VRML data stream
  
    -  Returns:
    
-  VRML version identifier or 0 on failure
  
 
 readBody
readBody
  public GroupNode readBody()
  -  read VRML body
should not be called before readHeader or setVersion
 getNodeNames
getNodeNames
  public Hashtable getNodeNames()
All Packages  Class Hierarchy  This Package  Previous  Next  Index