question: 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 ( ) ; } } }
target:  restore the shapes from the input stream into this collections NOT PART OF API and subject to change (DO NOT USE)