@Test void testDefaultSerializer() { final RDFaWriterService svc = new DefaultRdfaWriterService(); final ByteArrayOutputStream out = new ByteArrayOutputStream(); svc.write(getTriples2(), out, "http: assertAll("HTML check", checkHtmlWithoutNamespaces(new String(out.toByteArray(), UTF_8))); }
@Override public void write(final Stream<Triple> triples, final OutputStream out, final String subject) { final Writer writer = new OutputStreamWriter(out, UTF_8); try { template .execute(writer, new HtmlData(namespaceService, subject, triples.collect(toList()), css, js, icon)) .flush(); } catch (final IOException ex) { throw new UncheckedIOException(ex); } }
DefaultRdfaWriterService implements RDFaWriterService { @Override public void write(final Stream<Triple> triples, final OutputStream out, final String subject) { final Writer writer = new OutputStreamWriter(out, UTF_8); try { template .execute(writer, new HtmlData(namespaceService, subject, triples.collect(toList()), css, js, icon)) .flush(); } catch (final IOException ex) { throw new UncheckedIOException(ex); } } }
DefaultRdfaWriterService implements RDFaWriterService { @Override public void write(final Stream<Triple> triples, final OutputStream out, final String subject) { final Writer writer = new OutputStreamWriter(out, UTF_8); try { template .execute(writer, new HtmlData(namespaceService, subject, triples.collect(toList()), css, js, icon)) .flush(); } catch (final IOException ex) { throw new UncheckedIOException(ex); } } DefaultRdfaWriterService(); @Inject  DefaultRdfaWriterService(final NamespaceService namespaceService); private  DefaultRdfaWriterService(final NamespaceService namespaceService, final Config config);  DefaultRdfaWriterService(final NamespaceService namespaceService,
            final String template, final String css,
            final String js, final String icon);  DefaultRdfaWriterService(final NamespaceService namespaceService,
            final String template, final List<String> css,
            final List<String> js, final String icon); }
DefaultRdfaWriterService implements RDFaWriterService { @Override public void write(final Stream<Triple> triples, final OutputStream out, final String subject) { final Writer writer = new OutputStreamWriter(out, UTF_8); try { template .execute(writer, new HtmlData(namespaceService, subject, triples.collect(toList()), css, js, icon)) .flush(); } catch (final IOException ex) { throw new UncheckedIOException(ex); } } DefaultRdfaWriterService(); @Inject  DefaultRdfaWriterService(final NamespaceService namespaceService); private  DefaultRdfaWriterService(final NamespaceService namespaceService, final Config config);  DefaultRdfaWriterService(final NamespaceService namespaceService,
            final String template, final String css,
            final String js, final String icon);  DefaultRdfaWriterService(final NamespaceService namespaceService,
            final String template, final List<String> css,
            final List<String> js, final String icon); @Override void write(final Stream<Triple> triples, final OutputStream out, final String subject); }
DefaultRdfaWriterService implements RDFaWriterService { @Override public void write(final Stream<Triple> triples, final OutputStream out, final String subject) { final Writer writer = new OutputStreamWriter(out, UTF_8); try { template .execute(writer, new HtmlData(namespaceService, subject, triples.collect(toList()), css, js, icon)) .flush(); } catch (final IOException ex) { throw new UncheckedIOException(ex); } } DefaultRdfaWriterService(); @Inject  DefaultRdfaWriterService(final NamespaceService namespaceService); private  DefaultRdfaWriterService(final NamespaceService namespaceService, final Config config);  DefaultRdfaWriterService(final NamespaceService namespaceService,
            final String template, final String css,
            final String js, final String icon);  DefaultRdfaWriterService(final NamespaceService namespaceService,
            final String template, final List<String> css,
            final List<String> js, final String icon); @Override void write(final Stream<Triple> triples, final OutputStream out, final String subject); static final String CONFIG_RDFA_TEMPLATE; static final String CONFIG_RDFA_CSS; static final String CONFIG_RDFA_ICON; static final String CONFIG_RDFA_JS; }