@Service(value=SerializingProvider.class) @Property(name="supportedFormat", value={"application/rdf+xml","text/turtle","application/x-turtle","text/rdf+nt","text/rdf+n3"}) public class JenaSerializerProvider extends Object implements SerializingProvider
SerializingProvider
based on JenaConstructor and Description |
---|
JenaSerializerProvider() |
Modifier and Type | Method and Description |
---|---|
void |
serialize(OutputStream serializedGraph,
TripleCollection tc,
String formatIdentifier)
Serializes a
TripleCollection to a specified
OutputStream in the format identified by
formatIdentifier . |
public void serialize(OutputStream serializedGraph, TripleCollection tc, String formatIdentifier)
SerializingProvider
TripleCollection
to a specified
OutputStream
in the format identified by
formatIdentifier
. This method will be invoked
for a supported format, a format is considered as supported if the part
before a ';'-character in the formatIdentifier
matches
a SupportedFormat
annotation of the implementing class.serialize
in interface SerializingProvider
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.