|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.utils.scenegraph.io.retained.Controller
com.sun.j3d.utils.scenegraph.io.retained.StreamControl
public class StreamControl
Provides the infrastructure for ScenGraphStream Reader and Writer
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.j3d.utils.scenegraph.io.retained.Controller |
---|
Controller.J3dIOObjectInputStream |
Field Summary | |
---|---|
protected java.lang.String |
FILE_IDENT
|
private java.io.DataInputStream |
inputStream
|
private java.io.DataOutputStream |
outputStream
|
Fields inherited from class com.sun.j3d.utils.scenegraph.io.retained.Controller |
---|
BG_DIR_PTR, BRANCH_GRAPH_COUNT, classLoader, currentFileVersion, FILE_DESCRIPTION, j3dClasses, NAMES_OBJECTS_TABLE_PTR, NODE_TYPES_PTR, nullObject, outputFileVersion, SYMBOL_TABLE_PTR, symbolTable, UNIVERSE_CONFIG_PTR |
Constructor Summary | |
---|---|
StreamControl(java.io.DataInputStream in)
|
|
StreamControl(java.io.DataOutputStream out)
|
Method Summary | |
---|---|
void |
addNamedObjects(java.util.HashMap namedObjects)
Add the named objects to the symbol table |
void |
close()
|
long |
getFilePointer()
Implementation of abstract method from Controller. |
void |
loadNodeComponent(SymbolTableData symbol)
Used by SymbolTable to load a node component that is not in current graph |
BranchGroup |
readBranchGraph(java.util.HashMap namedObjects)
|
protected void |
readBranchGraphs(int[] graphs)
Read the set of branchgraps. |
void |
readStreamHeader()
|
void |
writeBranchGraph(BranchGroup bg,
java.io.Serializable userData)
The BranchGraph userData is not supported in a stream and will be ignored. |
void |
writeStreamHeader()
Prepare the Stream for writing, by sending header information |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String FILE_IDENT
private java.io.DataInputStream inputStream
private java.io.DataOutputStream outputStream
Constructor Detail |
---|
public StreamControl(java.io.DataOutputStream out)
public StreamControl(java.io.DataInputStream in)
Method Detail |
---|
public void writeStreamHeader() throws java.io.IOException
java.io.IOException
public void readStreamHeader() throws java.io.IOException
java.io.IOException
public void addNamedObjects(java.util.HashMap namedObjects)
public void writeBranchGraph(BranchGroup bg, java.io.Serializable userData) throws java.io.IOException
writeBranchGraph
in class Controller
java.io.IOException
public BranchGroup readBranchGraph(java.util.HashMap namedObjects) throws java.io.IOException
java.io.IOException
protected void readBranchGraphs(int[] graphs) throws java.io.IOException
readBranchGraphs
in class Controller
java.io.IOException
public void loadNodeComponent(SymbolTableData symbol) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in class Controller
java.io.IOException
public long getFilePointer()
getFilePointer
in class Controller
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |