|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.web3d.x3d.jaxp.XMLReader
public class XMLReader
Common reader implementation that can be either strict or lenient in the parsing.
This parser supports the following properties:
| Constructor Summary | |
|---|---|
XMLReader()
Create a new instance of the reader. |
|
| Method Summary | |
|---|---|
ContentHandler |
getContentHandler()
Get the currently set ContentHandler instance. |
ErrorReporter |
getErrorHandler()
Get the currently set ErrorHandler instance. |
java.lang.Object |
getProperty(java.lang.String prop)
Get the value of the named property. |
ProtoHandler |
getProtoHandler()
Get the currently set ProtoHandler instance. |
RouteHandler |
getRouteHandler()
Get the currently set RouteHandler instance. |
ScriptHandler |
getScriptHandler()
Get the currently set ScriptHandler instance. |
void |
parse(InputSource input)
Parse a VRML document represented by the given input source. |
void |
setContentHandler(ContentHandler ch)
Set the content handler to the given instance. |
void |
setErrorHandler(ErrorHandler eh)
Set the error handler to the given instance. |
void |
setErrorReporter(ErrorReporter eh)
Set the error reporter instance. |
void |
setHeaderIgnore(boolean enable)
Tell the reader that it should not look for the header. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Set the value of the named property to the given value. |
void |
setProtoHandler(ProtoHandler ph)
Set the proto handler to the given instance. |
void |
setRouteHandler(RouteHandler rh)
Set the route handler to the given instance. |
void |
setScriptHandler(ScriptHandler sh)
Set the script handler to the given instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLReader()
throws FactoryConfigurationError
FactoryConfigurationError| Method Detail |
|---|
public void parse(InputSource input)
throws java.io.IOException,
VRMLException
parse in interface VRMLReaderinput - The input source to be used
java.io.IOException - An I/O error while reading the stream
VRMLParseException - A parsing error occurred in the file
SAVNotSupportedException - The input file is not XML
encoded.
VRMLException
public java.lang.Object getProperty(java.lang.String prop)
throws SAVNotSupportedException
getProperty in interface VRMLReaderprop - The name of the property to get the value of
SAVNotSupportedException - The VRMLReader does not recognize
or does not support this property name.
public void setProperty(java.lang.String name,
java.lang.Object value)
throws SAVNotSupportedException
setProperty in interface VRMLReadername - The name of the property to setvalue - The value of this property
SAVNotSupportedException - The VRMLReader does not recognize
or does not support this property name.public void setHeaderIgnore(boolean enable)
setHeaderIgnore in interface VRMLReaderenable - true to stop looking for a headerpublic ErrorReporter getErrorHandler()
ErrorHandler instance. If nothing is set
it will return null.
getErrorHandler in interface VRMLReaderpublic void setErrorHandler(ErrorHandler eh)
setErrorHandler in interface VRMLReadereh - The error handler instance to usepublic void setErrorReporter(ErrorReporter eh)
setErrorReporter in interface VRMLReadereh - The error handler instance to usepublic ContentHandler getContentHandler()
ContentHandler instance. If nothing is set
it will return null.
getContentHandler in interface VRMLReaderpublic void setContentHandler(ContentHandler ch)
setContentHandler in interface VRMLReaderch - The content handler instance to usepublic ScriptHandler getScriptHandler()
ScriptHandler instance. If nothing is set
it will return null.
getScriptHandler in interface VRMLReaderpublic void setScriptHandler(ScriptHandler sh)
setScriptHandler in interface VRMLReadersh - The script handler instance to usepublic ProtoHandler getProtoHandler()
ProtoHandler instance. If nothing is set
it will return null.
getProtoHandler in interface VRMLReaderpublic void setProtoHandler(ProtoHandler ph)
setProtoHandler in interface VRMLReaderph - The proto handler instance to usepublic RouteHandler getRouteHandler()
RouteHandler instance. If nothing is set
it will return null.
getRouteHandler in interface VRMLReaderpublic void setRouteHandler(RouteHandler rh)
setRouteHandler in interface VRMLReaderrh - The route handler instance to use
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||