question: public void writePathsToStream ( final ObjectOutput os ) throws IOException { final byte [ ] dvr = glyphDisplay . serializeToByteArray ( null ) ; os . writeObject ( dvr ) ; os . writeInt ( maxWidth ) ; os . writeInt ( maxHeight ) ; os . writeBoolean ( lockColours ) ; }
target:  method to serialize all the paths in this object.  This method is needed because GeneralPath does not implement Serializable so we need to serialize it ourself. The correct usage is to first serialize this object, cached_current_path is marked as transient so it will not be serilized, this method should then be called, so the paths are serialized directly after the main object in the same ObjectOutput. NOT PART OF API and subject to change (DO NOT USE)