Package org.apache.jena.riot.system
Class Serializer
java.lang.Object
org.apache.jena.riot.system.Serializer
The injection point for the Quad
Serializable process.
This class is public to allow system initialization to inject
handler functions for Quad.
See also Node and Triple.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the current triple serializer replacement function.static voidsetQuadSerializer(Function<Quad, Object> writeReplaceFunction) Set the quad serializer replacement function.
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
setQuadSerializer
Set the quad serializer replacement function. This is a function called byTriple.writeReplaceduring theSerializableprocess. The return is an object used in place ofQuadfor the serialization.ANY-ACCESS-MODIFIER Object writeReplace() throws ObjectStreamException;
The returned object must provide
ANY-ACCESS-MODIFIER Object readResolve() throws ObjectStreamException;
where "Object" is a
Quad.- See Also:
-
getQuadSerializer
Return the current triple serializer replacement function.
-