Package org.web3d.parser.vrml97
Class VRML97Reader
java.lang.Object
org.web3d.vrml.parser.BaseReader
org.web3d.parser.vrml97.VRML97Reader
- All Implemented Interfaces:
VRMLReader
Implementation of a VRML97 reader that can be either strict or lenient in
the parsing.
When requested to parse, the reader will open the stream and check to see that we have the right sort of parser. If the header does not contain "#VRML V2.0 utf8" then it will generate an exception.
This parser supports the following properties:
- "conformance": ["weak", "strict"]. String values. Defaults to weak
- Version:
- $Revision: 1.4 $
- Author:
- Justin Couch
-
Field Summary
Fields inherited from class org.web3d.vrml.parser.BaseReader
CONFORMANCE_PROP, contentHandler, errorHandler, errorReporter, ignoreHeader, properties, protoHandler, routeHandler, scriptHandler, STRICT_CONFORMANCE, WEAK_CONFORMANCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
parse
(InputSource is) Parse a VRML document represented by the given input source.Methods inherited from class org.web3d.vrml.parser.BaseReader
getContentHandler, getErrorHandler, getProperty, getProtoHandler, getRouteHandler, getScriptHandler, setContentHandler, setErrorHandler, setErrorReporter, setHeaderIgnore, setProperty, setProtoHandler, setRouteHandler, setScriptHandler
-
Constructor Details
-
VRML97Reader
public VRML97Reader()Create a new instance of the reader. Does not initialise anything until we know what sort of input file we have.
-
-
Method Details
-
parse
Parse a VRML document represented by the given input source. This method should not be called while currently processing a stream. If multiple concurrent streams need to be parsed then multiple instances of this interface should be used.- Parameters:
is
- The input source to be used- Throws:
IOException
- An I/O error while reading the streamVRMLParseException
- A parsing error occurred in the fileSAVNotSupportedException
- The input file is not VRML97 UTF8 encoded.VRMLException
-