Class DocumentParser

    • Method Detail

      • parse

        public static Document parse​(MediaType contentType,
                                     InputStream inputStream)
                              throws JsonLdError
        Deprecated.
        Create a new document.
        Parameters:
        contentType - MediaType of the raw content, must not be null
        inputStream - providing unparsed raw content described by {MediaType
        Returns:
        Document representing unparsed content
        Throws:
        JsonLdError - in a case of parsing error
      • parse

        public static Document parse​(MediaType contentType,
                                     Reader reader)
                              throws JsonLdError
        Deprecated.
        Create a new document.
        Parameters:
        contentType - MediaType of the raw content, must not be null
        reader - providing unparsed raw content described by {MediaType
        Returns:
        Document representing unparsed content
        Throws:
        JsonLdError - in a case of parsing error