use of org.brackit.xquery.node.d2linked.D2NodeBuilder in project sirix by sirixdb.
the class IndexController method deserialize.
/**
* Deserialize from an {@link InputStream}.
*
* @param out the {@link InputStream} from which to deserialize the XML fragment
* @throws SirixException if an exception occurs during serialization
*/
public Node<?> deserialize(final InputStream in) throws SirixException {
try {
final DocumentParser parser = new DocumentParser(in);
final D2NodeBuilder builder = new D2NodeBuilder();
parser.parse(builder);
return builder.root();
} catch (final DocumentException e) {
throw new SirixException(e);
}
}
Aggregations