use of org.brackit.xquery.util.serialize.SubtreePrinter in project sirix by sirixdb.
the class IndexController method serialize.
/**
* Serialize to an {@link OutputStream}.
*
* @param out the {@link OutputStream} to serialize to
* @throws SirixRuntimeException if an exception occurs during serialization
*/
public void serialize(final OutputStream out) {
try {
final SubtreePrinter serializer = new SubtreePrinter(new PrintStream(checkNotNull(out)));
serializer.print(mIndexes.materialize());
serializer.end();
} catch (final DocumentException e) {
throw new SirixRuntimeException(e);
}
}
Aggregations