Package com.apicatalog.jsonld.document
Class DocumentParser
- java.lang.Object
-
- com.apicatalog.jsonld.document.DocumentParser
-
@Deprecated(since="1.0.4") public final class DocumentParser extends Object
Deprecated.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Documentparse(MediaType contentType, InputStream inputStream)Deprecated.Create a new document.static Documentparse(MediaType contentType, Reader reader)Deprecated.Create a new document.
-
-
-
Method Detail
-
parse
public static Document parse(MediaType contentType, 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, 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
-
-