//串行化输入与输出=================================================================== //串行读入 public void ReadObject(Stream s) { int textsLen = IOUtil.readInt(s); if (textsLen <= 0) { return; } objList.Clear(); for (int i = 0; i < textsLen; i++) { TextElement txtElement = new TextElement(this); txtElement.ReadObject(s); addElement(txtElement);//增加到列表 //Consts.loadingDialog.setStep(40 + i * 10 / textsLen, "载入文字:" + txtElement.getValue()); } }