public class StreamControl extends Controller
Modifier and Type | Field and Description |
---|---|
protected String |
FILE_IDENT |
BG_DIR_PTR, BRANCH_GRAPH_COUNT, classLoader, currentFileVersion, FILE_DESCRIPTION, NAMES_OBJECTS_TABLE_PTR, NODE_TYPES_PTR, nullObject, outputFileVersion, SYMBOL_TABLE_PTR, symbolTable, UNIVERSE_CONFIG_PTR
Constructor and Description |
---|
StreamControl(DataInputStream in) |
StreamControl(DataOutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
addNamedObjects(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(HashMap namedObjects) |
protected void |
readBranchGraphs(int[] graphs)
Read the set of branchgraps.
|
void |
readStreamHeader() |
void |
writeBranchGraph(BranchGroup bg,
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, readNodeComponents, readObject, readPoint3d, readPoint3f, readQuat4f, readSerializedData, readSharedGroup, readTransform3D, readTuple3d, readTuple3f, readTuple4d, readTuple4f, readUniverse, readVector3f, readVector4d, readVector4f, reset, setClassLoader, skipUserData, useSuperClassIfNoChildClass, writeBounds, writeColor3f, writeColor4f, writeMatrix4d, writeNodeComponents, writeObject, writePoint3d, writePoint3f, writeQuat4f, writeSerializedData, writeSharedGroup, writeTransform3D, writeTuple3d, writeTuple3f, writeTuple4d, writeTuple4f, writeUniverse, writeVector3f, writeVector4d, writeVector4f
protected String FILE_IDENT
public StreamControl(DataOutputStream out)
public StreamControl(DataInputStream in)
public void writeStreamHeader() throws IOException
IOException
public void readStreamHeader() throws IOException
IOException
public void addNamedObjects(HashMap namedObjects)
public void writeBranchGraph(BranchGroup bg, Serializable userData) throws IOException
writeBranchGraph
in class Controller
IOException
public BranchGroup readBranchGraph(HashMap namedObjects) throws IOException
IOException
protected void readBranchGraphs(int[] graphs) throws IOException
readBranchGraphs
in class Controller
IOException
public void loadNodeComponent(SymbolTableData symbol) throws IOException
IOException
public void close() throws IOException
close
in class Controller
IOException
public long getFilePointer()
getFilePointer
in class Controller
Copyright © 2016–2022 SciJava. All rights reserved.