public class SceneGraphStreamReader extends Object
| Constructor and Description |
|---|
SceneGraphStreamReader(InputStream stream)
Creates new SceneGraphStreamReader and reads the file header information
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the SceneGraphStreamReader stream
|
ClassLoader |
getClassLoader()
Get the ClassLoader used to load the scene graph objects and
deserialize user data
|
BranchGroup |
readBranchGraph(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(ClassLoader classLoader)
Set the ClassLoader used to load the scene graph objects and
deserialize user data
|
public SceneGraphStreamReader(InputStream stream) throws IOException
IOExceptionpublic ConfiguredUniverse readUniverse() throws IOException
IOExceptionpublic ConfiguredUniverse readUniverse(Canvas3D canvas) throws IOException
canvas - The Canvas3D to associate with the universe.IOExceptionpublic BranchGroup readBranchGraph(HashMap namedObjects) throws IOException
namedObjects map will be updated with any objects that
were named during the write processIOExceptionpublic void setClassLoader(ClassLoader classLoader)
public ClassLoader getClassLoader()
public void close()
throws IOException
IOExceptionCopyright © 2016–2022 SciJava. All rights reserved.