Interface ArtifactSerializer<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T create​(java.io.InputStream in)
      Creates the artifact from the provided InputStream.
      void serialize​(T artifact, java.io.OutputStream out)
      Serializes the artifact to the provided OutputStream.
    • Method Detail

      • create

        T create​(java.io.InputStream in)
          throws java.io.IOException
        Creates the artifact from the provided InputStream. The InputStream remains open.
        Returns:
        the artifact
        Throws:
        java.io.IOException
      • serialize

        void serialize​(T artifact,
                       java.io.OutputStream out)
                throws java.io.IOException
        Serializes the artifact to the provided OutputStream. The OutputStream remains open.
        Parameters:
        artifact -
        out -
        Throws:
        java.io.IOException