0

我在 JRE1.6 中有这段代码,我想在 android 中使用它,但我坚持下去。

            OutputFormat format = new OutputFormat(dom);
            format.setIndenting(true);
            XMLSerializer serializer = new XMLSerializer(toWrite, format);
            serializer.serialize(dom);
  • toWrite 是一个FileOutputStream
4

1 回答 1

1

ObjectInputStream and ObjectoutputStream classes are there in android to serialize and deserialize your object. Just Google them. here is ObjectOutPutStream

于 2013-01-24T18:27:17.430 回答