Class BinaryIOBase
java.lang.Object
gaiasky.data.group.BinaryIOBase
- All Implemented Interfaces:
BinaryIO
- Direct Known Subclasses:
BinaryVersion0, BinaryVersion2
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBinaryIOBase(int nDoubles, int nFloats, boolean hipId, boolean tychoIds) -
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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BinaryIO
writeParticleRecordModifier and TypeMethodDescriptionvoidWrite the star bean to the output stream.
-
Field Details
-
nDoubles
protected final int nDoubles -
nFloats
protected final int nFloats -
hipId
protected boolean hipId -
tychoIds
protected boolean tychoIds
-
-
Constructor Details
-
BinaryIOBase
protected BinaryIOBase(int nDoubles, int nFloats, boolean hipId, boolean tychoIds)
-
-
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
-