Class StarGroupBinaryIO

  • All Implemented Interfaces:
    IStarGroupIO

    public class StarGroupBinaryIO
    extends java.lang.Object
    implements IStarGroupIO
    Loads and writes star groups
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.badlogic.gdx.utils.Array<AbstractPositionEntity> readParticles​(java.io.InputStream in)
      Reads a single star vgroup from the given input stream.
      void writeParticles​(com.badlogic.gdx.utils.Array<AbstractPositionEntity> list, java.io.OutputStream out)
      Writes the list to the output stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StarGroupBinaryIO

        public StarGroupBinaryIO()
    • Method Detail

      • writeParticles

        public void writeParticles​(com.badlogic.gdx.utils.Array<AbstractPositionEntity> list,
                                   java.io.OutputStream out)
        Writes the list to the output stream. The list must contain a single star vgroup.
        Specified by:
        writeParticles in interface IStarGroupIO
        Parameters:
        list - The list with the star vgroup to write
        out - The output stream to write to
      • readParticles

        public com.badlogic.gdx.utils.Array<AbstractPositionEntity> readParticles​(java.io.InputStream in)
        Reads a single star vgroup from the given input stream.
        Specified by:
        readParticles in interface IStarGroupIO
        Parameters:
        in - The input stream to read the star vgroup from
        Returns:
        A list with a single star vgroup object