I/O
DataOutputStream createOutputStream() throws IOException { } DataInputStream createInputStream() throws IOException { } void writeNumShapes(DataOutputStream out) throws IOException { } int readNumShapes(DataInputStream in) throws IOException { } int readShapeType(DataInputStream in) throws IOException { }
createOutputStream()
DataOutputStream
FileOutputStream
File
createInputStream()
DataInputStream
FileInputStream
writeNumShapes()
Vector
drawnShapes
size()
readNumShapes()
int
readShapeType()
java.io
Shape
void writeIntToStream(DataOutputStream out, int i) throws IOException { } int readIntFromStream(DataInputStream in) throws IOException { }
writeIntToStream()
readIntFromStream()