Package gaiasky.data.octreegen
Class StarGroupBinaryIO
java.lang.Object
gaiasky.data.octreegen.StarGroupBinaryIO
- All Implemented Interfaces:
IStarGroupIO
public class StarGroupBinaryIO extends java.lang.Object implements IStarGroupIO
Loads and writes star groups.
-
Constructor Summary
Constructors Constructor Description StarGroupBinaryIO() -
Method Summary
Modifier and Type Method Description java.util.List<SceneGraphNode>readParticles(java.io.InputStream in)Reads a single star group from the given input stream.voidwriteParticles(java.util.List<SceneGraphNode> list, java.io.OutputStream out)Writes the list to the output stream.voidwriteParticles(java.util.List<SceneGraphNode> list, java.io.OutputStream out, int version)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StarGroupBinaryIO
public StarGroupBinaryIO()
-
-
Method Details
-
writeParticles
Writes the list to the output stream. The list must contain a single star group.- Specified by:
writeParticlesin interfaceIStarGroupIO- Parameters:
list- The list with the star group to writeout- The output stream to write to
-
writeParticles
public void writeParticles(java.util.List<SceneGraphNode> list, java.io.OutputStream out, int version)- Specified by:
writeParticlesin interfaceIStarGroupIO
-
readParticles
Reads a single star group from the given input stream.- Specified by:
readParticlesin interfaceIStarGroupIO- Parameters:
in- The input stream to read the star group from- Returns:
- A list with a single star group object
-