Class BinaryVersion3
java.lang.Object
gaiasky.data.group.BinaryVersion3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadParticleRecord
(IDataReader in, double factor) readParticleRecord
(DataInputStream in, double factor) Read a star from the input stream.readParticleRecord
(MappedByteBuffer mem, double factor) Read a star from the mapped buffer.void
Write the star bean to the output stream.
-
Constructor Details
-
BinaryVersion3
protected BinaryVersion3()
-
-
Method Details
-
readParticleRecord
Description copied from interface:BinaryIO
Read a star from the mapped buffer.- Specified by:
readParticleRecord
in interfaceBinaryIO
- Parameters:
mem
- Mapped memory buffer to read from.factor
- Scale factor to apply to the positions.- Returns:
- The star.
- Throws:
IOException
-
readParticleRecord
Description copied from interface:BinaryIO
Read a star from the input stream.- Specified by:
readParticleRecord
in interfaceBinaryIO
- Parameters:
in
- Input stream.factor
- Scale factor to apply to the positions.- Returns:
- The star.
- Throws:
IOException
- If the read fails.
-
readParticleRecord
- Throws:
IOException
-
writeParticleRecord
Description copied from interface:BinaryIO
Write the star bean to the output stream.- Specified by:
writeParticleRecord
in interfaceBinaryIO
- Parameters:
sb
- The star bean.out
- The output stream.- Throws:
IOException
- If the write operation fails.
-