table を使用してメモリ内の同じオブジェクトをシリアル化する理由を知りたい:
ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
ObjectOutputStream stream = new ObjectOutputStream(byteOutput);
stream.writeObject(m.view()); //view return a string
stream.flush();
stream.close();
byteOutput.flush();
byteOutput.close();
プログラムを数回実行すると、異なる結果が得られます(大きな違いではありませんが、それでも違いがあります)
execution 1 :4497
execution 3 :4500
execution 4 :4500
execution 5 :4494
m : 他のクラスの別のオブジェクトを含むオブジェクトです。ここにすべてのクラスをリストすることはできません。これは大きなフレームワークであり、string
シリアル化も同じです!