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.Object
Deprecated.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DocumentParser()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Document
parse(MediaType contentType, java.io.InputStream inputStream)
Deprecated.Create a new document.static Document
parse(MediaType contentType, java.io.Reader reader)
Deprecated.Create a new document.private static JsonLdError
unsupportedMediaType(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
-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
public static Document parse(MediaType contentType, java.io.Reader reader) throws JsonLdError
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
private static JsonLdError unsupportedMediaType(MediaType contentType) throws JsonLdError
Deprecated.- Throws:
JsonLdError
-
-