Class ShapeTable
- java.lang.Object
-
- io.github.applecommander.bastools.api.shapes.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.
-
-
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)
-
-
-
Field Detail
-
shapes
public final java.util.List<Shape> shapes
-
-
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
-
-