Package no.hasmac.jsonld.document
Class DocumentParser
- java.lang.Object
-
- no.hasmac.jsonld.document.DocumentParser
-
@Deprecated(since="1.0.4") public final class DocumentParser extends java.lang.ObjectDeprecated.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDocumentParser()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Documentparse(MediaType contentType, java.io.InputStream inputStream)Deprecated.Create a new document.static Documentparse(MediaType contentType, java.io.Reader reader)Deprecated.Create a new document.private static JsonLdErrorunsupportedMediaType(MediaType contentType)Deprecated.
-
-
-
Method Detail
-
parse
public static Document parse(MediaType contentType, java.io.InputStream inputStream) throws JsonLdError
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
public static Document parse(MediaType contentType, java.io.Reader reader) throws JsonLdError
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
private static JsonLdError unsupportedMediaType(MediaType contentType) throws JsonLdError
Deprecated.- Throws:
JsonLdError
-
-