Package org.web3d.vrml.export
Class Exporter
java.lang.Object
org.web3d.vrml.export.Exporter
- All Implemented Interfaces:
ContentHandler
,ProtoHandler
,RouteHandler
,ScriptHandler
,StringContentHandler
- Direct Known Subclasses:
BaseRetainedExporter
,BinaryExporter
,NullExporter
,OBJFileExporter
,STLBinaryFileExporter
,STLFileExporter
,ThreeMFFileExporter
,VrmlExporter
,X3DClassicExporter
,X3DXMLExporter
public abstract class Exporter
extends Object
implements StringContentHandler, RouteHandler, ScriptHandler, ProtoHandler
Abstract representation of the ability to export content into some
external system - typically a file format.
- Version:
- $Revision: 1.12 $
- Author:
- Alan Hudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.j3d.util.ErrorReporter
The error reporter to useprotected int
The last error codeprotected int
The major version of the spec this file belongs to.protected int
The minor version of the spec this file belongs to. -
Constructor Summary
ConstructorsConstructorDescriptionExporter
(int major, int minor, org.j3d.util.ErrorReporter reporter) Create a new exporter for the given spec version -
Method Summary
Modifier and TypeMethodDescriptionint
Return the last error code generated by this exporter.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.ContentHandler
componentDecl, endDocument, endField, endNode, exportDecl, importDecl, metaDecl, profileDecl, setDocumentLocator, startDocument, startField, startNode, useDecl
Methods inherited from interface org.web3d.vrml.sav.ProtoHandler
endExternProtoDecl, endProtoBody, endProtoDecl, externProtoURI, protoFieldDecl, protoIsDecl, startExternProtoDecl, startProtoBody, startProtoDecl
Methods inherited from interface org.web3d.vrml.sav.RouteHandler
routeDecl
Methods inherited from interface org.web3d.vrml.sav.ScriptHandler
endScriptDecl, scriptFieldDecl, startScriptDecl
Methods inherited from interface org.web3d.vrml.sav.StringContentHandler
fieldValue, fieldValue
-
Field Details
-
errorReporter
protected org.j3d.util.ErrorReporter errorReporterThe error reporter to use -
majorVersion
protected int majorVersionThe major version of the spec this file belongs to. -
minorVersion
protected int minorVersionThe minor version of the spec this file belongs to. -
lastErrorCode
protected int lastErrorCodeThe last error code
-
-
Constructor Details
-
Exporter
public Exporter(int major, int minor, org.j3d.util.ErrorReporter reporter) Create a new exporter for the given spec version- Parameters:
major
- The major version number of this sceneminor
- The minor version number of this scenereporter
-
-
-
Method Details
-
getLastErrorCode
public int getLastErrorCode()Return the last error code generated by this exporter.- Returns:
- 0 if everything is working as intended
-