Package org.web3d.parser.x3d
Class VRMLEncodedReader
java.lang.Object
org.web3d.vrml.parser.BaseReader
org.web3d.parser.x3d.VRMLEncodedReader
- All Implemented Interfaces:
VRMLReader
Implementation of an X3D reader that can be either strict or lenient in
the parsing and supports only VRML encoded files.
If the user needs support for XML-encoded files, they should use either
X3DReader
for generalised X3D support, or
XMLReader
for XML-only support.
When requested to parse, the reader will open the stream and check to see that we have the right sort of parser.
This parser supports the following properties:
- "conformance": ["weak", "strict"]. String values. Defaults to weak
- Version:
- $Revision: 1.7 $
- 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
-
VRMLEncodedReader
public VRMLEncodedReader()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
-