|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.utils.scenegraph.io.SceneGraphStreamReader
public class SceneGraphStreamReader
Read and create a (set) of Java3D BranchGraphs or Universe from a Java Stream.
Constructor Summary | |
---|---|
SceneGraphStreamReader(java.io.InputStream stream)
Creates new SceneGraphStreamReader and reads the file header information |
Method Summary | |
---|---|
void |
close()
Close the SceneGraphStreamReader stream |
java.lang.ClassLoader |
getClassLoader()
Get the ClassLoader used to load the scene graph objects and deserialize user data |
javax.media.j3d.BranchGroup |
readBranchGraph(java.util.HashMap namedObjects)
Read and return the graph from the stream. |
ConfiguredUniverse |
readUniverse()
Read and create the universe. |
ConfiguredUniverse |
readUniverse(javax.media.j3d.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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SceneGraphStreamReader(java.io.InputStream stream) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public ConfiguredUniverse readUniverse() throws java.io.IOException
java.io.IOException
public ConfiguredUniverse readUniverse(javax.media.j3d.Canvas3D canvas) throws java.io.IOException
canvas
- The Canvas3D to associate with the universe.
java.io.IOException
public javax.media.j3d.BranchGroup readBranchGraph(java.util.HashMap namedObjects) throws java.io.IOException
namedObjects
map will be updated with any objects that
were named during the write process
java.io.IOException
public void setClassLoader(java.lang.ClassLoader classLoader)
public java.lang.ClassLoader getClassLoader()
public void close() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |