InputStream in = new FileInputStream(srcSerialization);
OutputStream out = new FileOutputStream(dest);
ObjectReader or = new ObjectReaderImpl(in);
ObjectWriter ow = new ObjectWriterImpl(out);
for (int i = 0; i < BLOCK_COUNT; i++)
{
ow.writeInt(or.readInt());
ow.writeInt(or.readInt());
ow.writeInt(or.readInt());
ow.writeLong(or.readLong());
ow.writeLong(or.readLong());
ow.writeLong(or.readLong());
ow.writeString(or.readString());
ow.writeString(or.readString());
or.readFully(buf);
ow.write(buf);
}
in.close();
out.flush();
out.close();