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 MediaTypeJsonDocument. contentTypeprivate MediaTypeRdfDocument. contentTypeMethods in no.hasmac.jsonld.document that return MediaType Modifier and Type Method Description MediaTypeDocument. getContentType()The Content-Type of the loaded document, exclusive of any optional parameters.MediaTypeJsonDocument. getContentType()MediaTypeRdfDocument. getContentType()Methods in no.hasmac.jsonld.document with parameters of type MediaType Modifier and Type Method Description static booleanJsonDocument. accepts(MediaType contentType)static booleanRdfDocument. accepts(MediaType contentType)private static voidJsonDocument. assertContentType(MediaType contentType)private static voidRdfDocument. assertContentType(MediaType contentType)private static JsonDocumentJsonDocument. doParse(MediaType contentType, jakarta.json.stream.JsonParser parser)static JsonDocumentJsonDocument. of(MediaType contentType, jakarta.json.JsonStructure structure)Create a new document fromJsonStructure.static JsonDocumentJsonDocument. of(MediaType contentType, java.io.InputStream is)Create a new document from content provided byInputStream.static JsonDocumentJsonDocument. of(MediaType contentType, java.io.Reader reader)Create a new document from content provided byReader.static RdfDocumentRdfDocument. of(MediaType type, java.io.InputStream is)static DocumentRdfDocument. of(MediaType type, java.io.Reader reader)static DocumentRdfDocument. of(MediaType contentType, RdfDataset dataset)Create a new document fromRdfDataset.static DocumentDocumentParser. parse(MediaType contentType, java.io.InputStream inputStream)Deprecated.Create a new document.static DocumentDocumentParser. parse(MediaType contentType, java.io.Reader reader)Deprecated.Create a new document.private static JsonLdErrorDocumentParser. 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 MediaTypeLink. typeMethods 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 MediaTypeMediaType. ANYstatic MediaTypeMediaType. HTMLstatic MediaTypeMediaType. JSONstatic MediaTypeMediaType. JSON_LDstatic MediaTypeMediaType. N_QUADSstatic MediaTypeMediaType. XHTMLMethods in no.hasmac.jsonld.http.media that return MediaType Modifier and Type Method Description static MediaTypeMediaType. of(java.lang.String value)static MediaTypeMediaType. of(java.lang.String type, java.lang.String subtype)static MediaTypeMediaType. of(java.lang.String type, java.lang.String subtype, java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters)MediaTypeMediaTypeParser. parse()Methods in no.hasmac.jsonld.http.media with parameters of type MediaType Modifier and Type Method Description booleanMediaType. 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 MediaTypeDocumentResolver. fallbackContentTypeMethods 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 throwJsonLdErrorif there is no reader nor fallbackContentType.private DocumentDefaultHttpLoader. resolve(MediaType type, java.net.URI targetUri, java.net.URI contextUrl, HttpResponse response)voidDefaultHttpLoader. setFallbackContentType(MediaType fallbackContentType)Set fallback content-type used when received content-type is not supported.voidDocumentResolver. 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 RdfReaderRdf. createReader(MediaType contentType, java.io.InputStream is)static RdfReaderRdf. createReader(MediaType contentType, java.io.Reader reader)static RdfWriterRdf. createWriter(MediaType contentType, java.io.OutputStream os)static RdfWriterRdf. 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_READWRITEMethods 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 RdfReaderDefaultRdfProvider. createReader(MediaType contentType, java.io.Reader reader)RdfWriterDefaultRdfProvider. 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 RdfReaderRdfProvider. createReader(MediaType contentType, java.io.Reader reader)abstract RdfWriterRdfProvider. createWriter(MediaType contentType, java.io.Writer writer)
-