public void restoreFromStream(final ByteArrayInputStream bis) throws IOException, ClassNotFoundException {
  final ObjectInput os=new ObjectInputStream(bis);
  final int size=(Integer)os.readObject();
  max_size=size;
  items=new Rectangle[size];
  for (int i=0; i < size; i++) {
    final GeneralPath path=PathSerializer.deserializePath(os);
    if (path == null) {
      items[i]=null;
    }
 else {
      items[i]=path.getBounds();
    }
  }
}

public void restoreFromStream ( final ByteArrayInputStream bis ) throws IOException , ClassNotFoundException { final ObjectInput os = new ObjectInputStream ( bis ) ; final int size = ( Integer ) os . readObject ( ) ; max_size = size ; items = new Rectangle [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { final GeneralPath path = PathSerializer . deserializePath ( os ) ; if ( path == null ) { items [ i ] = null ; } else { items [ i ] = path . getBounds ( ) ; } } }
restore the shapes from the input stream into this collections not part of api and subject to change ( do not use )
