cs015.SketchySupport
Interface SketchyReadWrite


public interface SketchyReadWrite

This is an optional interface that you should use if you want to distribute printing and parsing throughout your shapes.


Method Summary
 void parse(FileIO io)
          Optional method for your convenience.
 void print(FileIO io)
          Optional method for your convenience.
 

Method Detail

print

public void print(FileIO io)
Optional method for your convenience. If you want to distribute the task of printing to a file among your objects, you should fill in this method. If you want to do it a different way, that's fine, just define this method to do nothing.

Parameters:
io - the FileIO object to print to.

parse

public void parse(FileIO io)
Optional method for your convenience. If you want to distribute the task of parsing a file among your objects, you should fill in this method. If you want to do it a different way, that's fine, just define this method to do nothing.

Parameters:
io - the FileIO object to read from.