ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream( bos );
out.writeInt( this.store.size() );
for (Entry<String, byte[]> stringEntry : this.store.entrySet()) {
Entry entry = (Entry) stringEntry;
out.writeObject(entry.getKey());
out.writeObject(entry.getValue());
}
out.flush();
out.close();
byte[] buff = bos.toByteArray();
stream.writeObject( buff );
if (helper.isSigned()) {
sign( stream,
helper,
buff );
}
stream.writeInt( this.invokerLookups.size() );
for (Entry<String, Object> stringObjectEntry : this.invokerLookups.entrySet()) {
Entry entry = (Entry) stringObjectEntry;
stream.writeObject(entry.getKey());
stream.writeObject(entry.getValue());
}
stream.writeInt( this.classLookups.size() );
for (Entry<String, byte[]> entry : this.classLookups.entrySet()) {
stream.writeObject( entry.getKey() );
stream.writeObject( entry.getValue() );
}
}