Class ShapeTable


  • public class ShapeTable
    extends java.lang.Object
    Represents an Applesoft shape table. Note that this direct class is somewhat useless, except for the I/O routines. Access the individual shapes via the #shapes list.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.List<Shape> shapes  
    • Constructor Summary

      Constructors 
      Constructor Description
      ShapeTable()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int findPositionByLabel​(java.lang.String label)  
      static ShapeTable read​(byte[] data)
      Read an existing Applesoft shape table binary file.
      static ShapeTable read​(java.io.File file)  
      static ShapeTable read​(java.io.InputStream inputStream)  
      static ShapeTable read​(java.nio.file.Path path)  
      void write​(java.io.File file)  
      void write​(java.io.OutputStream outputStream)  
      void write​(java.nio.file.Path path)  
      • Methods inherited from class java.lang.Object

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

      • shapes

        public final java.util.List<Shape> shapes
    • Constructor Detail

      • ShapeTable

        public ShapeTable()
    • Method Detail

      • read

        public static ShapeTable read​(byte[] data)
        Read an existing Applesoft shape table binary file.
      • read

        public static ShapeTable read​(java.io.InputStream inputStream)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public static ShapeTable read​(java.io.File file)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public static ShapeTable read​(java.nio.file.Path path)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • findPositionByLabel

        public int findPositionByLabel​(java.lang.String label)
      • write

        public void write​(java.io.OutputStream outputStream)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public void write​(java.io.File file)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public void write​(java.nio.file.Path path)
                   throws java.io.IOException
        Throws:
        java.io.IOException