@Override public void serialize(Object object, OutputStream out) throws IOException { XMLSerialization xmlSerialization = XMLSerialization.getXMLSerialization(); if (xmlSerialization == null) { throw new IOException("XML Serialization not initialized."); } xmlSerialization.writeXML(object, out); }
@Override public Object deserialize(InputStream in) throws IOException { XMLSerialization xmlSerialization = XMLSerialization.getXMLSerialization(); if (xmlSerialization == null) { throw new IOException("XML Serialization not initialized."); } return xmlSerialization.fromXML(in); }