|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.vrml.parser.BaseReader
Common reader implementation that can be either strict or lenient in the parsing.
This parser supports the following properties:
| Field Summary | |
protected static java.lang.String |
CONFORMANCE_PROP
Name of the property specifying the conformance level |
protected ContentHandler |
contentHandler
Reference to the registered content handler if we have one |
protected ErrorHandler |
errorHandler
Reference to the registered error handler if we have one |
protected ErrorReporter |
errorReporter
Reference to the registered error handler if we have one |
protected boolean |
ignoreHeader
Flag to ignore the header |
protected java.util.HashMap |
properties
Map of properties held by this reader |
protected ProtoHandler |
protoHandler
Reference to the registered proto handler if we have one |
protected RouteHandler |
routeHandler
Reference to the registered route handler if we have one |
protected ScriptHandler |
scriptHandler
Reference to the registered script handler if we have one |
protected static java.lang.String |
STRICT_CONFORMANCE
Name of the property value specifying strict conformance |
protected static java.lang.String |
WEAK_CONFORMANCE
Name of the property value specifying weak conformance |
| Constructor Summary | |
protected |
BaseReader()
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 |
setContentHandler(ContentHandler ch)
Set the node handler to the given instance. |
void |
setErrorHandler(ErrorHandler eh)
Set the error handler to the given instance. |
void |
setErrorReporter(ErrorReporter ep)
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 |
| Methods inherited from interface org.web3d.vrml.sav.VRMLReader |
parse |
| Field Detail |
protected static final java.lang.String CONFORMANCE_PROP
protected static final java.lang.String WEAK_CONFORMANCE
protected static final java.lang.String STRICT_CONFORMANCE
protected java.util.HashMap properties
protected ContentHandler contentHandler
protected RouteHandler routeHandler
protected ScriptHandler scriptHandler
protected ProtoHandler protoHandler
protected ErrorReporter errorReporter
protected ErrorHandler errorHandler
protected boolean ignoreHeader
| Constructor Detail |
protected BaseReader()
| Method Detail |
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 ep)
setErrorReporter in interface VRMLReaderep - The error reporter 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 VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||