public class SceneGraphStreamReader
extends java.lang.Object
| Constructor and Description |
|---|
SceneGraphStreamReader(java.io.InputStream stream)
Creates new SceneGraphStreamReader and reads the file header information
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the SceneGraphStreamReader stream
|
java.lang.ClassLoader |
getClassLoader()
Get the ClassLoader used to load the scene graph objects and
deserialize user data
|
BranchGroup |
readBranchGraph(java.util.HashMap namedObjects)
Read and return the graph from the stream.
|
ConfiguredUniverse |
readUniverse()
Read and create the universe.
|
ConfiguredUniverse |
readUniverse(Canvas3D canvas)
Read and create the universe.
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
Set the ClassLoader used to load the scene graph objects and
deserialize user data
|
public SceneGraphStreamReader(java.io.InputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic ConfiguredUniverse readUniverse() throws java.io.IOException
java.io.IOExceptionpublic ConfiguredUniverse readUniverse(Canvas3D canvas) throws java.io.IOException
canvas - The Canvas3D to associate with the universe.java.io.IOExceptionpublic BranchGroup readBranchGraph(java.util.HashMap namedObjects) throws java.io.IOException
namedObjects map will be updated with any objects that
were named during the write processjava.io.IOExceptionpublic void setClassLoader(java.lang.ClassLoader classLoader)
public java.lang.ClassLoader getClassLoader()
public void close()
throws java.io.IOException
java.io.IOException