Class DocumentParser
java.lang.Object
no.hasmac.jsonld.document.DocumentParser
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Documentparse(MediaType contentType, InputStream inputStream) Deprecated.Create a new document.static DocumentDeprecated.Create a new document.private static JsonLdErrorunsupportedMediaType(MediaType contentType) Deprecated.
-
Constructor Details
-
DocumentParser
private DocumentParser()Deprecated.
-
-
Method Details
-
parse
Deprecated.Create a new document.- Parameters:
contentType-MediaTypeof the raw content, must not benullinputStream- providing unparsed raw content described by {MediaType- Returns:
Documentrepresenting unparsed content- Throws:
JsonLdError- in a case of parsing error
-
parse
Deprecated.Create a new document.- Parameters:
contentType-MediaTypeof the raw content, must not benullreader- providing unparsed raw content described by {MediaType- Returns:
Documentrepresenting unparsed content- Throws:
JsonLdError- in a case of parsing error
-
unsupportedMediaType
Deprecated.- Throws:
JsonLdError
-
JsonDocument.of(JsonStructure)orRdfDocument.of(RdfDataset)directly