Class BinaryVersion2
java.lang.Object
gaiasky.data.group.BinaryIOBase
gaiasky.data.group.BinaryVersion2
- All Implemented Interfaces:
BinaryIO
The binary version 2 is more compact than version 0 and 1, as it uses double precision only for positions. The rest of the attributes
(velocity vector, proper motions, radial velocity, magnitudes, color, size, HIP) use single precision.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWrite the star bean to the output stream.Methods inherited from class BinaryIOBase
readParticleRecord, readParticleRecord, readParticleRecordModifier 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.
-
Constructor Details
-
BinaryVersion2
protected BinaryVersion2()
-
-
Method Details
-
writeParticleRecord
Description copied from interface:BinaryIOWrite the star bean to the output stream.- Parameters:
sb- The star bean.out- The output stream.- Throws:
IOException- If the write operation fails.
-