Class DocumentParser

    • Constructor Detail

      • DocumentParser

        private DocumentParser()
        Deprecated.
    • Method Detail

      • parse

        public static Document parse​(MediaType contentType,
                                     java.io.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,
                                     java.io.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