Uses of Class
no.hasmac.jsonld.http.media.MediaType
Packages that use MediaType
Package
Description
Processable documents.
Remote Document and Context Retrieval.
-
Uses of MediaType in no.hasmac.jsonld.document
Fields in no.hasmac.jsonld.document declared as MediaTypeModifier and TypeFieldDescriptionprivate final MediaType
JsonDocument.contentType
private final MediaType
RdfDocument.contentType
Methods in no.hasmac.jsonld.document that return MediaTypeModifier and TypeMethodDescriptionDocument.getContentType()
The Content-Type of the loaded document, exclusive of any optional parameters.JsonDocument.getContentType()
RdfDocument.getContentType()
Methods in no.hasmac.jsonld.document with parameters of type MediaTypeModifier and TypeMethodDescriptionstatic boolean
static boolean
private static void
JsonDocument.assertContentType
(MediaType contentType) private static void
RdfDocument.assertContentType
(MediaType contentType) private static JsonDocument
static JsonDocument
Create a new document fromJsonStructure
.static JsonDocument
JsonDocument.of
(MediaType contentType, InputStream is) Create a new document from content provided byInputStream
.static JsonDocument
Create a new document from content provided byReader
.static RdfDocument
RdfDocument.of
(MediaType type, InputStream is) static Document
static Document
RdfDocument.of
(MediaType contentType, RdfDataset dataset) Create a new document fromRdfDataset
.static Document
DocumentParser.parse
(MediaType contentType, InputStream inputStream) Deprecated.Create a new document.static Document
Deprecated.Create a new document.private static JsonLdError
DocumentParser.unsupportedMediaType
(MediaType contentType) Deprecated.Constructors in no.hasmac.jsonld.document with parameters of type MediaTypeModifierConstructorDescriptionprivate
JsonDocument
(MediaType type, String profile, jakarta.json.JsonStructure structure) private
RdfDocument
(MediaType type, String profile, RdfDataset dataset) -
Uses of MediaType in no.hasmac.jsonld.http.link
Fields in no.hasmac.jsonld.http.link declared as MediaTypeMethods in no.hasmac.jsonld.http.link that return types with arguments of type MediaTypeConstructors in no.hasmac.jsonld.http.link with parameters of type MediaType -
Uses of MediaType in no.hasmac.jsonld.http.media
Fields in no.hasmac.jsonld.http.media declared as MediaTypeModifier and TypeFieldDescriptionstatic final MediaType
MediaType.ANY
static final MediaType
MediaType.HTML
static final MediaType
MediaType.JSON
static final MediaType
MediaType.JSON_LD
static final MediaType
MediaType.N_QUADS
static final MediaType
MediaType.XHTML
Methods in no.hasmac.jsonld.http.media that return MediaTypeModifier and TypeMethodDescriptionstatic MediaType
static MediaType
static final MediaType
MediaTypeParser.parse()
Methods in no.hasmac.jsonld.http.media with parameters of type MediaType -
Uses of MediaType in no.hasmac.jsonld.loader
Fields in no.hasmac.jsonld.loader declared as MediaTypeMethods in no.hasmac.jsonld.loader that return types with arguments of type MediaTypeMethods in no.hasmac.jsonld.loader with parameters of type MediaTypeModifier and TypeMethodDescriptionprivate static Optional
<DocumentReader<InputStream>> DocumentResolver.findReader
(MediaType type) Return a reader or throwJsonLdError
if there is no reader nor fallbackContentType.private Document
DefaultHttpLoader.resolve
(MediaType type, URI targetUri, URI contextUrl, HttpResponse response) void
DefaultHttpLoader.setFallbackContentType
(MediaType fallbackContentType) Set fallback content-type used when received content-type is not supported.void
DocumentResolver.setFallbackContentType
(MediaType fallbackContentType) -
Uses of MediaType in no.hasmac.rdf
Methods in no.hasmac.rdf that return types with arguments of type MediaTypeModifier and TypeMethodDescriptionstatic Collection
<MediaType> Rdf.canRead()
static Collection
<MediaType> Rdf.canWrite()
Methods in no.hasmac.rdf with parameters of type MediaTypeModifier and TypeMethodDescriptionstatic RdfReader
Rdf.createReader
(MediaType contentType, InputStream is) static RdfReader
Rdf.createReader
(MediaType contentType, Reader reader) static RdfWriter
Rdf.createWriter
(MediaType contentType, OutputStream os) static RdfWriter
Rdf.createWriter
(MediaType contentType, Writer writer) -
Uses of MediaType in no.hasmac.rdf.impl
Fields in no.hasmac.rdf.impl with type parameters of type MediaTypeModifier and TypeFieldDescriptionprivate static final Collection
<MediaType> DefaultRdfProvider.CAN_READWRITE
Methods in no.hasmac.rdf.impl that return types with arguments of type MediaTypeMethods in no.hasmac.rdf.impl with parameters of type MediaTypeModifier and TypeMethodDescriptionDefaultRdfProvider.createReader
(MediaType contentType, Reader reader) DefaultRdfProvider.createWriter
(MediaType contentType, Writer writer) -
Uses of MediaType in no.hasmac.rdf.spi
Methods in no.hasmac.rdf.spi that return types with arguments of type MediaTypeModifier and TypeMethodDescriptionabstract Collection
<MediaType> RdfProvider.canRead()
abstract Collection
<MediaType> RdfProvider.canWrite()
Methods in no.hasmac.rdf.spi with parameters of type MediaTypeModifier and TypeMethodDescriptionabstract RdfReader
RdfProvider.createReader
(MediaType contentType, Reader reader) abstract RdfWriter
RdfProvider.createWriter
(MediaType contentType, Writer writer)