Interface WriteableModelSource

    • Method Detail

      • getSyntaxMimeType

        java.lang.String getSyntaxMimeType()
        Returns:
        the mime type of the data
      • getSourceDescription

        default java.lang.String getSourceDescription()
        Returns:
        optional description of the source
      • writeData

        long writeData​(java.io.InputStream data)
                throws java.io.IOException,
                       ResourceModelSourceException
        Write new data in the expected format
        Parameters:
        data - data
        Returns:
        bytes written
        Throws:
        java.io.IOException - if an IO error occurs
        ResourceModelSourceException - if the data is not valid