use of org.apache.jena.riot.RDFFormat in project jena by apache.
the class ModLangOutput method printRegistered.
private static void printRegistered(PrintStream out) {
out.println("Streaming languages:");
Set<Lang> seen = new HashSet<>();
for (RDFFormat fmt : StreamRDFWriter.registered()) {
Lang lang = fmt.getLang();
if (hiddenLanguages.contains(lang))
continue;
if (seen.contains(lang))
continue;
seen.add(lang);
out.println(" " + lang.getLabel());
}
System.err.println("Non-streaming languages:");
for (RDFFormat fmt : RDFWriterRegistry.registered()) {
Lang lang = fmt.getLang();
if (hiddenLanguages.contains(lang))
continue;
if (seen.contains(lang))
continue;
seen.add(lang);
out.println(" " + lang.getLabel());
}
}
Aggregations