Package org.apache.jena.riot.system
Class Serializer
- java.lang.Object
-
- org.apache.jena.riot.system.Serializer
-
public class Serializer extends java.lang.ObjectThe injection point for the QuadSerializableprocess. This class is public to allow system initialization to inject handler functions forQuad. See alsoNodeandTriple.
-
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.function.Function<Quad,java.lang.Object>getQuadSerializer()Return the current triple serializer replacement function.static voidsetQuadSerializer(java.util.function.Function<Quad,java.lang.Object> writeReplaceFunction)Set the quad serializer replacement function.
-
-
-
Method Detail
-
setQuadSerializer
public static void setQuadSerializer(java.util.function.Function<Quad,java.lang.Object> writeReplaceFunction)
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:
Serializable
-
getQuadSerializer
public static java.util.function.Function<Quad,java.lang.Object> getQuadSerializer()
Return the current triple serializer replacement function.
-
-