use of org.xwiki.filter.output.WriterOutputTarget in project xwiki-platform by xwiki.
the class XWikiDocumentFilterUtils method exportEntity.
/**
* @param entity the entity to read
* @param xarProperties the configuration of the output filter
* @param documentProperties the configuration of the input filter
* @return the XML as a String
* @throws ComponentLookupException failed to find an event generator for passed entity
* @throws FilterException when failing to generate export the passed entity
* @throws IOException when failing to close the stream
*/
public String exportEntity(Object entity, XAROutputProperties xarProperties, DocumentInstanceInputProperties documentProperties) throws ComponentLookupException, FilterException, IOException {
WriterOutputTarget target = new StringWriterOutputTarget();
exportEntity(entity, target, xarProperties, documentProperties);
return target.toString();
}
Aggregations