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);
}

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 ) ; }
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 )
