Package no.hasmac.jsonld.document
Class DocumentParser
java.lang.Object
no.hasmac.jsonld.document.DocumentParser
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Document
parse
(MediaType contentType, InputStream inputStream) Deprecated.Create a new document.static Document
Deprecated.Create a new document.private static JsonLdError
unsupportedMediaType
(MediaType contentType) Deprecated.
-
Constructor Details
-
DocumentParser
private DocumentParser()Deprecated.
-
-
Method Details
-
parse
Deprecated.Create a new document.- Parameters:
contentType
-MediaType
of the raw content, must not benull
inputStream
- providing unparsed raw content described by {MediaType
- Returns:
Document
representing unparsed content- Throws:
JsonLdError
- in a case of parsing error
-
parse
Deprecated.Create a new document.- Parameters:
contentType
-MediaType
of the raw content, must not benull
reader
- providing unparsed raw content described by {MediaType
- Returns:
Document
representing unparsed content- Throws:
JsonLdError
- in a case of parsing error
-
unsupportedMediaType
Deprecated.- Throws:
JsonLdError
-
JsonDocument.of(jakarta.json.JsonStructure)
orRdfDocument.of(no.hasmac.rdf.RdfDataset)
directly