Class GenericModelSerializer

    • Constructor Detail

      • GenericModelSerializer

        public GenericModelSerializer()
    • Method Detail

      • create

        public AbstractModel create​(java.io.InputStream in)
                             throws java.io.IOException
        Description copied from interface: ArtifactSerializer
        Creates the artifact from the provided InputStream. The InputStream remains open.
        Specified by:
        create in interface ArtifactSerializer<AbstractModel>
        Returns:
        the artifact
        Throws:
        java.io.IOException
      • serialize

        public void serialize​(AbstractModel artifact,
                              java.io.OutputStream out)
                       throws java.io.IOException
        Description copied from interface: ArtifactSerializer
        Serializes the artifact to the provided OutputStream. The OutputStream remains open.
        Specified by:
        serialize in interface ArtifactSerializer<AbstractModel>
        Throws:
        java.io.IOException
      • register

        public static void register​(java.util.Map<java.lang.String,​ArtifactSerializer> factories)