public void write ( final OutputStream out , final Stream < ? extends Triple > triples , final IRI subject ) { final Writer writer = new OutputStreamWriter ( out , UTF_8 ) ; try { template . execute ( writer , new HtmlData ( namespaceService , subject , triples . collect ( toList ( ) ) , properties ) ) . flush ( ) ; } catch ( final IOException ex ) { throw new UncheckedIOException ( ex ) ; } }
Send the content to an output stream