Class BaseRetainedExporter

java.lang.Object
org.web3d.vrml.export.Exporter
org.web3d.vrml.export.BaseRetainedExporter
All Implemented Interfaces:
BinaryContentHandler, ContentHandler, ProtoHandler, RouteHandler, ScriptHandler, StringContentHandler
Direct Known Subclasses:
X3DClassicRetainedExporter, X3DRetainedSAXExporter

public abstract class BaseRetainedExporter extends Exporter implements BinaryContentHandler
An exporter that brings the whole file into memory before exporting. This has same advantages and disadvantages. Advantages: Ease of implementation. Streamed writing has several difficulties. Disadvantages: Comments will be lost Locations of import/exports/proto decls/routes might be changed. Upgrade logic must be in terminal files unless we want to track current node/field In the future we'd like to perform this across a SAI graph (i.e. no SAV stream to sniff), this block will document what problems that will entail: The DEF table for .wrl files has duplicates, so getDEFNodes loses info ExternProto URL already has worldUrl added in, removing worldRoot might not work TODO: Count Node num to help place ROUTE in the right place?
Version:
$Revision: 1.33 $
Author:
Alan Hudson