Class DocumentParser

java.lang.Object
no.hasmac.jsonld.document.DocumentParser

@Deprecated(since="1.0.4") public final class DocumentParser extends Object
  • Method Details

    • 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