/** * Write java.io.Serializable method. * * @param out the ObjectOutputStream where to write this XMap. * @throws IOException if writing fails. */ private void writeObject(ObjectOutputStream out) throws IOException { if (root == null) out.writeInt(0); else { ByteArrayOutputStream output = new ByteArrayOutputStream(); try { getXMLUtil().saveDocument(root.getOwnerDocument(), output); } catch (Exception e) { IOException ioe = new IOException("Could not serialize this XMap"); ioe.initCause(e); throw ioe; } out.writeInt(output.size()); out.write(output.toByteArray()); } }
/** * Write java.io.Serializable method. * * @param out the ObjectOutputStream where to write this XMap. * @throws IOException if writing fails. */ private void writeObject(ObjectOutputStream out) throws IOException { if (root == null) out.writeInt(0); else { ByteArrayOutputStream output = new ByteArrayOutputStream(); try { getXMLUtil().saveDocument(root.getOwnerDocument(), output); } catch (Exception e) { IOException ioe = new IOException("Could not serialize this XMap"); ioe.initCause(e); throw ioe; } out.writeInt(output.size()); out.write(output.toByteArray()); } }
/** * Write java.io.Serializable method. * * @param out the ObjectOutputStream where to write this XMap. * @throws IOException if writing fails. */ private void writeObject(ObjectOutputStream out) throws IOException { if (root == null) out.writeInt(0); else { ByteArrayOutputStream output = new ByteArrayOutputStream(); try { getXMLUtil().saveDocument(root.getOwnerDocument(), output); } catch (Exception e) { IOException ioe = new IOException("Could not serialize this XMap"); ioe.initCause(e); throw ioe; } out.writeInt(output.size()); out.write(output.toByteArray()); } }
/** * Write java.io.Serializable method. * * @param out the ObjectOutputStream where to write this XMap. * @throws IOException if writing fails. */ private void writeObject(ObjectOutputStream out) throws IOException { if (root == null) out.writeInt(0); else { ByteArrayOutputStream output = new ByteArrayOutputStream(); try { getXMLUtil().saveDocument(root.getOwnerDocument(), output); } catch (Exception e) { IOException ioe = new IOException("Could not serialize this XMap"); ioe.initCause(e); throw ioe; } out.writeInt(output.size()); out.write(output.toByteArray()); } }