|
||||||||||
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.RandomAccessFileControl
public class RandomAccessFileControl
Constructor Summary | |
---|---|
RandomAccessFileControl()
Creates new RandomAccessFileControl |
Method Summary | |
---|---|
void |
close()
|
void |
createFile(java.io.File file,
SimpleUniverse universe,
boolean writeUniverseContent,
java.lang.String description,
java.io.Serializable userData)
Create the file and write the inital header information |
int |
getBranchGraphCount()
Return the number of branchgraphs in the file |
int |
getBranchGraphPosition(javax.media.j3d.BranchGroup graph)
Given a branchgraph, return the corresponding index of the graph in the file. |
long |
getFilePointer()
Get the current file 'pointer' location. |
java.lang.Object |
getUserData()
|
void |
loadNodeComponent(SymbolTableData symbol)
Used by SymbolTable to load a node component that is not in current graph |
void |
loadSharedGroup(SymbolTableData symbol)
Loads the specified SharedGroup |
void |
openFile(java.io.File file)
Open the file for reading |
javax.media.j3d.BranchGroup[] |
readAllBranchGraphs()
Read and return all the graphs in the file |
javax.media.j3d.BranchGroup[] |
readBranchGraph(int graphID)
|
java.lang.Object |
readBranchGraphUserData(int graphID)
|
java.lang.String |
readFileDescription()
|
ConfiguredUniverse |
readUniverse(boolean attachBranchGraphs,
javax.media.j3d.Canvas3D canvas)
|
void |
writeBranchGraph(javax.media.j3d.BranchGroup bg,
java.io.Serializable userData)
|
void |
writeObject(java.io.DataOutput out,
SceneGraphObjectState obj)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomAccessFileControl()
Method Detail |
---|
public void createFile(java.io.File file, SimpleUniverse universe, boolean writeUniverseContent, java.lang.String description, java.io.Serializable userData) throws java.io.IOException, UnsupportedUniverseException, javax.media.j3d.CapabilityNotSetException
java.io.IOException
UnsupportedUniverseException
javax.media.j3d.CapabilityNotSetException
public void openFile(java.io.File file) throws java.io.IOException
java.io.IOException
public ConfiguredUniverse readUniverse(boolean attachBranchGraphs, javax.media.j3d.Canvas3D canvas) throws java.io.IOException
java.io.IOException
public java.lang.Object getUserData()
public int getBranchGraphCount()
public void writeBranchGraph(javax.media.j3d.BranchGroup bg, java.io.Serializable userData) throws java.io.IOException
writeBranchGraph
in class Controller
java.io.IOException
public javax.media.j3d.BranchGroup[] readBranchGraph(int graphID) throws java.io.IOException
java.io.IOException
public javax.media.j3d.BranchGroup[] readAllBranchGraphs() throws java.io.IOException
java.io.IOException
public java.lang.Object readBranchGraphUserData(int graphID) throws java.io.IOException
java.io.IOException
public void writeObject(java.io.DataOutput out, SceneGraphObjectState obj) throws java.io.IOException
writeObject
in class Controller
java.io.IOException
public java.lang.String readFileDescription() throws java.io.IOException
java.io.IOException
public void loadNodeComponent(SymbolTableData symbol) throws java.io.IOException
java.io.IOException
public void loadSharedGroup(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()
Controller
getFilePointer
in class Controller
public int getBranchGraphPosition(javax.media.j3d.BranchGroup graph)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |