Class BinaryVersion3
java.lang.Object
gaiasky.data.group.BinaryVersion3
- All Implemented Interfaces:
BinaryIO
-
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.voidWrite the star bean to the output stream.
-
Constructor Details
-
BinaryVersion3
protected BinaryVersion3()
-
-
Method Details
-
readParticleRecord
Description copied from interface:BinaryIORead a star from the mapped buffer.- Specified by:
readParticleRecordin 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:BinaryIORead a star from the input stream.- Specified by:
readParticleRecordin 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:BinaryIOWrite the star bean to the output stream.- Specified by:
writeParticleRecordin interfaceBinaryIO- Parameters:
sb- The star bean.out- The output stream.- Throws:
IOException- If the write operation fails.
-