Package gaiasky.data.octreegen
Class StarGroupSerializedIO
java.lang.Object
gaiasky.data.octreegen.StarGroupSerializedIO
- All Implemented Interfaces:
IStarGroupIO
Loads and writes star groups using java's default
ObjectOutputStream
and
ObjectInputStream
through SerializedDataProvider
.-
Constructor Summary
-
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
-
StarGroupSerializedIO
public StarGroupSerializedIO()
-
-
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 write.out
- 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
-