public class StreamControl extends Controller
Constructor and Description |
---|
StreamControl(java.io.DataInputStream in) |
StreamControl(java.io.DataOutputStream out) |
Modifier and Type | Method and Description |
---|---|
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) |
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
|
addNamedObject, createState, createState, createState, getClassLoader, getCurrentFileVersion, getImageCompression, getNamedObject, getNames, getNodeClassFromID, getNodeClassID, getOutputFileVersion, getSymbolTable, readBounds, readColor3f, readColor4f, readMatrix4d, readObject, readPoint3d, readPoint3f, readQuat4f, readSerializedData, readSharedGroup, readTransform3D, readTuple3d, readTuple3f, readTuple4d, readTuple4f, readUniverse, readVector3f, readVector4d, readVector4f, reset, setClassLoader, skipUserData, useSuperClassIfNoChildClass, writeBounds, writeColor3f, writeColor4f, writeMatrix4d, writeObject, writePoint3d, writePoint3f, writeQuat4f, writeSerializedData, writeSharedGroup, writeTransform3D, writeTuple3d, writeTuple3f, writeTuple4d, writeTuple4f, writeUniverse, writeVector3f, writeVector4d, writeVector4f
public StreamControl(java.io.DataOutputStream out)
public StreamControl(java.io.DataInputStream in)
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
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