Uses of Class
no.hasmac.jsonld.http.media.MediaType
-
Packages that use MediaType Package Description no.hasmac.jsonld.document Processable documents.no.hasmac.jsonld.http.link no.hasmac.jsonld.http.media no.hasmac.jsonld.loader Remote Document and Context Retrieval.no.hasmac.rdf no.hasmac.rdf.impl no.hasmac.rdf.spi -
-
Uses of MediaType in no.hasmac.jsonld.document
Fields in no.hasmac.jsonld.document declared as MediaType Modifier and Type Field Description private MediaType
JsonDocument. contentType
private MediaType
RdfDocument. contentType
Methods in no.hasmac.jsonld.document that return MediaType Modifier and Type Method Description MediaType
Document. getContentType()
The Content-Type of the loaded document, exclusive of any optional parameters.MediaType
JsonDocument. getContentType()
MediaType
RdfDocument. getContentType()
Methods in no.hasmac.jsonld.document with parameters of type MediaType Modifier and Type Method Description static boolean
JsonDocument. accepts(MediaType contentType)
static boolean
RdfDocument. accepts(MediaType contentType)
private static void
JsonDocument. assertContentType(MediaType contentType)
private static void
RdfDocument. assertContentType(MediaType contentType)
private static JsonDocument
JsonDocument. doParse(MediaType contentType, jakarta.json.stream.JsonParser parser)
static JsonDocument
JsonDocument. of(MediaType contentType, jakarta.json.JsonStructure structure)
Create a new document fromJsonStructure
.static JsonDocument
JsonDocument. of(MediaType contentType, java.io.InputStream is)
Create a new document from content provided byInputStream
.static JsonDocument
JsonDocument. of(MediaType contentType, java.io.Reader reader)
Create a new document from content provided byReader
.static RdfDocument
RdfDocument. of(MediaType type, java.io.InputStream is)
static Document
RdfDocument. of(MediaType type, java.io.Reader reader)
static Document
RdfDocument. of(MediaType contentType, RdfDataset dataset)
Create a new document fromRdfDataset
.static Document
DocumentParser. parse(MediaType contentType, java.io.InputStream inputStream)
Deprecated.Create a new document.static Document
DocumentParser. parse(MediaType contentType, java.io.Reader reader)
Deprecated.Create a new document.private static JsonLdError
DocumentParser. unsupportedMediaType(MediaType contentType)
Deprecated.Constructors in no.hasmac.jsonld.document with parameters of type MediaType Constructor Description JsonDocument(MediaType type, java.lang.String profile, jakarta.json.JsonStructure structure)
RdfDocument(MediaType type, java.lang.String profile, RdfDataset dataset)
-
Uses of MediaType in no.hasmac.jsonld.http.link
Fields in no.hasmac.jsonld.http.link declared as MediaType Modifier and Type Field Description private MediaType
Link. type
Methods in no.hasmac.jsonld.http.link that return types with arguments of type MediaType Modifier and Type Method Description java.util.Optional<MediaType>
Link. type()
Constructors in no.hasmac.jsonld.http.link with parameters of type MediaType Constructor Description Link(java.net.URI contextUri, java.net.URI targetUri, java.util.Set<java.lang.String> relations, MediaType type, LinkAttributes attributes)
-
Uses of MediaType in no.hasmac.jsonld.http.media
Fields in no.hasmac.jsonld.http.media declared as MediaType Modifier and Type Field Description static MediaType
MediaType. ANY
static MediaType
MediaType. HTML
static MediaType
MediaType. JSON
static MediaType
MediaType. JSON_LD
static MediaType
MediaType. N_QUADS
static MediaType
MediaType. XHTML
Methods in no.hasmac.jsonld.http.media that return MediaType Modifier and Type Method Description static MediaType
MediaType. of(java.lang.String value)
static MediaType
MediaType. of(java.lang.String type, java.lang.String subtype)
static MediaType
MediaType. of(java.lang.String type, java.lang.String subtype, java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters)
MediaType
MediaTypeParser. parse()
Methods in no.hasmac.jsonld.http.media with parameters of type MediaType Modifier and Type Method Description boolean
MediaType. match(MediaType mediaType)
-
Uses of MediaType in no.hasmac.jsonld.loader
Fields in no.hasmac.jsonld.loader declared as MediaType Modifier and Type Field Description private MediaType
DocumentResolver. fallbackContentType
Methods in no.hasmac.jsonld.loader that return types with arguments of type MediaType Modifier and Type Method Description private static java.util.Optional<MediaType>
FileLoader. detectedContentType(java.lang.String name)
Methods in no.hasmac.jsonld.loader with parameters of type MediaType Modifier and Type Method Description private static java.util.Optional<DocumentReader<java.io.InputStream>>
DocumentResolver. findReader(MediaType type)
DocumentReader<java.io.InputStream>
DocumentResolver. getReader(MediaType contentType)
Return a reader or throwJsonLdError
if there is no reader nor fallbackContentType.private Document
DefaultHttpLoader. resolve(MediaType type, java.net.URI targetUri, java.net.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 MediaType Modifier and Type Method Description static java.util.Collection<MediaType>
Rdf. canRead()
static java.util.Collection<MediaType>
Rdf. canWrite()
Methods in no.hasmac.rdf with parameters of type MediaType Modifier and Type Method Description static RdfReader
Rdf. createReader(MediaType contentType, java.io.InputStream is)
static RdfReader
Rdf. createReader(MediaType contentType, java.io.Reader reader)
static RdfWriter
Rdf. createWriter(MediaType contentType, java.io.OutputStream os)
static RdfWriter
Rdf. createWriter(MediaType contentType, java.io.Writer writer)
-
Uses of MediaType in no.hasmac.rdf.impl
Fields in no.hasmac.rdf.impl with type parameters of type MediaType Modifier and Type Field Description private static java.util.Collection<MediaType>
DefaultRdfProvider. CAN_READWRITE
Methods in no.hasmac.rdf.impl that return types with arguments of type MediaType Modifier and Type Method Description java.util.Collection<MediaType>
DefaultRdfProvider. canRead()
java.util.Collection<MediaType>
DefaultRdfProvider. canWrite()
Methods in no.hasmac.rdf.impl with parameters of type MediaType Modifier and Type Method Description RdfReader
DefaultRdfProvider. createReader(MediaType contentType, java.io.Reader reader)
RdfWriter
DefaultRdfProvider. createWriter(MediaType contentType, java.io.Writer writer)
-
Uses of MediaType in no.hasmac.rdf.spi
Methods in no.hasmac.rdf.spi that return types with arguments of type MediaType Modifier and Type Method Description abstract java.util.Collection<MediaType>
RdfProvider. canRead()
abstract java.util.Collection<MediaType>
RdfProvider. canWrite()
Methods in no.hasmac.rdf.spi with parameters of type MediaType Modifier and Type Method Description abstract RdfReader
RdfProvider. createReader(MediaType contentType, java.io.Reader reader)
abstract RdfWriter
RdfProvider. createWriter(MediaType contentType, java.io.Writer writer)
-