Class Serializer

java.lang.Object
org.apache.jena.riot.system.Serializer

public class Serializer extends Object
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 Details

    • Serializer

      public Serializer()
  • Method Details

    • setQuadSerializer

      public static void setQuadSerializer(Function<Quad,Object> writeReplaceFunction)
      Set the quad serializer replacement function. This is a function called by Triple.writeReplace during the Serializable process. The return is an object used in place of Quad for 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

      public static Function<Quad,Object> getQuadSerializer()
      Return the current triple serializer replacement function.