Interface BinaryIO

    • Method Detail

      • readParticleRecord

        ParticleRecord readParticleRecord​(java.nio.MappedByteBuffer mem,
                                          double factor)
        Read a star from the mapped buffer
        Parameters:
        mem - Mapped memory buffer to read from
        factor - Scale factor to apply to positions
        Returns:
        The star
      • readParticleRecord

        ParticleRecord readParticleRecord​(java.io.DataInputStream in,
                                          double factor)
                                   throws java.io.IOException
        Read a star from the input stream
        Parameters:
        in - Input stream
        factor - Scale factor to apply to positions
        Returns:
        The star
        Throws:
        java.io.IOException
      • writeParticleRecord

        void writeParticleRecord​(IParticleRecord sb,
                                 java.io.DataOutputStream out)
                          throws java.io.IOException
        Write the star bean to the output stream
        Parameters:
        sb - The star bean
        out - The output stream
        Throws:
        java.io.IOException