public void readGraphics(ObjectInputStream objstream) throws IOException {
  Debug.message("omgraphics","OMGraphicList: Reading cached graphics");
  try {
    while (true) {
      try {
        OMGraphic omg=(OMGraphic)objstream.readObject();
        graphics.add(omg);
      }
 catch (      ClassNotFoundException e) {
        e.printStackTrace();
      }
catch (      OptionalDataException ode) {
        ode.printStackTrace();
      }
    }
  }
 catch (  EOFException e) {
  }
}

public void readGraphics ( ObjectInputStream objstream ) throws IOException { Debug . message ( "omgraphics" , "OMGraphicList: Reading cached graphics" ) ; try { while ( true ) { try { OMGraphic omg = ( OMGraphic ) objstream . readObject ( ) ; graphics . add ( omg ) ; } catch ( ClassNotFoundException e ) { e . printStackTrace ( ) ; } catch ( OptionalDataException ode ) { ode . printStackTrace ( ) ; } } } catch ( EOFException e ) { } }
read a cache of omgraphics , given a objectinputstream .
