java.lang .Object com.sun.j3d.utils.scenegraph.io .SceneGraphStreamReader SceneGraphStreamReader public class SceneGraphStreamReader extends java.lang.Object (Code) Read and create a (set) of Java3D BranchGraphs or Universe from a Java Stream.
SceneGraphStreamReader public SceneGraphStreamReader(InputStream stream) throws IOException (Code) Creates new SceneGraphStreamReader and reads the file header information
close public void close() throws IOException (Code) Close the SceneGraphStreamReader stream
since: Java 3D 1.5.1
getClassLoader public ClassLoader getClassLoader()(Code) Get the ClassLoader used to load the scene graph objects and
deserialize user data
readBranchGraph public BranchGroup readBranchGraph(HashMap namedObjects) throws IOException (Code) Read and return the graph from the stream.
namedObjects
map will be updated with any objects that
were named during the write process
readUniverse public ConfiguredUniverse readUniverse() throws IOException (Code) Read and create the universe. If the BranchGraphs were written then
they will be added to the universe before it is returned.
readUniverse public ConfiguredUniverse readUniverse(Canvas3D canvas) throws IOException (Code) Read and create the universe. If the BranchGraphs were written then
they will be added to the universe before it is returned.
Parameters: canvas - The Canvas3D to associate with the universe.
setClassLoader public void setClassLoader(ClassLoader classLoader)(Code) Set the ClassLoader used to load the scene graph objects and
deserialize user data