Package gaiasky.data.octreegen
Class StarGroupBinaryIO
java.lang.Object
gaiasky.data.octreegen.StarGroupBinaryIO
- All Implemented Interfaces:
IStarGroupIO
Loads and writes star groups.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads a single star group from the given input stream.void
writeParticles
(List<SceneGraphNode> list, OutputStream out) Writes the list to the output stream.void
writeParticles
(List<SceneGraphNode> list, OutputStream out, int version)
-
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:
writeParticles
in interfaceIStarGroupIO
- Parameters:
list
- The list with the star group to writeout
- The output stream to write to
-
writeParticles
- Specified by:
writeParticles
in interfaceIStarGroupIO
-
readParticles
Reads a single star group from the given input stream.- Specified by:
readParticles
in interfaceIStarGroupIO
- Parameters:
in
- The input stream to read the star group from- Returns:
- A list with a single star group object
-