@SuppressWarnings({"unchecked"}) @Override public Object doDeserialize(SerializedObject serializedObject, XStream xStream) { if ("org.dom4j.Document".equals(serializedObject.getContentType().getName())) { return xStream.unmarshal(new Dom4JReader((org.dom4j.Document) serializedObject.getData())); } if ("nu.xom.Document".equals(serializedObject.getContentType().getName())) { return xStream.unmarshal(new XomReader((nu.xom.Document) serializedObject.getData())); } InputStream serializedData = convert(serializedObject.getData(), serializedObject.getContentType(), InputStream.class); return xStream.fromXML(new InputStreamReader(serializedData, getCharset())); }
public HierarchicalStreamReader createReader(URL in) { try { final Document document = createBuilder().build(in.toExternalForm()); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(Reader text) { try { final Document document = createBuilder().build(text); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(File in) { try { final Document document = createBuilder().build(in); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(InputStream in) { try { final Document document = createBuilder().build(in); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(URL in) { try { Document document = builder.build(in.toExternalForm()); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(URL in) { try { final Document document = createBuilder().build(in.toExternalForm()); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
@Override public HierarchicalStreamReader createReader(final URL in) { try { final Document document = createBuilder().build(in.toExternalForm()); return new XomReader(document, getNameCoder()); } catch (final ValidityException e) { throw new StreamException(e); } catch (final ParsingException e) { throw new StreamException(e); } catch (final IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(Reader text) { try { Document document = builder.build(text); return new XomReader(document, xmlFriendlyReplacer()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(Reader text) { try { Document document = builder.build(text); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(InputStream in) { try { Document document = builder.build(in); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(File in) { try { Document document = builder.build(in); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(Reader text) { try { Document document = builder.build(text); return new XomReader(document, xmlFriendlyReplacer()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(Reader text) { try { Document document = builder.build(text); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(InputStream in) { try { final Document document = createBuilder().build(in); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(InputStream in) { try { final Document document = createBuilder().build(in); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(Reader text) { try { final Document document = createBuilder().build(text); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }
@Override public HierarchicalStreamReader createReader(final Reader text) { try { final Document document = createBuilder().build(text); return new XomReader(document, getNameCoder()); } catch (final ValidityException e) { throw new StreamException(e); } catch (final ParsingException e) { throw new StreamException(e); } catch (final IOException e) { throw new StreamException(e); } }
@Override public HierarchicalStreamReader createReader(final File in) { try { final Document document = createBuilder().build(in); return new XomReader(document, getNameCoder()); } catch (final ValidityException e) { throw new StreamException(e); } catch (final ParsingException e) { throw new StreamException(e); } catch (final IOException e) { throw new StreamException(e); } }
public HierarchicalStreamReader createReader(Reader text) { try { final Document document = createBuilder().build(text); return new XomReader(document, getNameCoder()); } catch (ValidityException e) { throw new StreamException(e); } catch (ParsingException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } }