private void writeObject(ObjectOutputStream out) throws IOException {
  out.writeUTF(serializedData);
  if (certs == null) {
    out.writeInt(0);
  }
 else {
    out.writeInt(certs.length);
    for (int i=0; i < certs.length; i++) {
      out.writeObject(certs[i]);
    }
  }
}

private void writeObject ( ObjectOutputStream out ) throws IOException { out . writeUTF ( serializedData ) ; if ( certs == null ) { out . writeInt ( 0 ) ; } else { out . writeInt ( certs . length ) ; for ( int i = 0 ; i < certs . length ; i ++ ) { out . writeObject ( certs [ i ] ) ; } } }
writes < br > ( string ) serializeddata < br > ( int ) number of certificates in this certpath < br > < array of certificates >
