@Override public IGraph read(InputStream in) throws IOException { XMLDecoder reader = new XMLDecoder( Violet016BackportFormatService.convertFromViolet016(in), null, new ExceptionListener() { public void exceptionThrown(Exception e) { e.printStackTrace(); } }); IGraph graph = (IGraph) reader.readObject(); in.close(); return graph; }
@Override public void write(IGraph graph, OutputStream out) { XMLEncoder encoder = getXMLEncoder(Violet016BackportFormatService.convertToViolet016(out)); encoder.writeObject(graph); encoder.close(); }