Uses of Class
org.faceless.publisher.type.MediaType
Packages that use MediaType
Package
Description
Provides the main classes for BFO Publisher
Contains extensions to BFO Publisher which are used to add functionality
Provides the base classes for output from BFO Publisher, extended by type-specific subpackages
Provides the classes used to write output to PDF
Provides the classes used to write output to SVG
Provides the classes and interfaces used for loading external resources
Contains utility classes and interfaces which are used across BFO Publisher
Provides the BFO Publisher web service
-
Uses of MediaType in org.faceless.publisher
Methods in org.faceless.publisher that return MediaTypeModifier and TypeMethodDescriptionReport.getMediaType()
Return the Media-Type as set bysetMediaType()
, or as determined automatically by the parser.Methods in org.faceless.publisher with parameters of type MediaTypeModifier and TypeMethodDescriptionReportFactory.createReportOutput
(MediaType mediaType) Create a newReportOutput
that matches the specifiedMediaType
, or null if that type cannot be generated.<E> E
ReportFactory.getResource
(URL2 uri, MediaType mediaType, Class<E> resourceClass) Load a resource, exactly as it would be loaded by a Report create from this factory.ReportFactory.newXMLReader
(MediaType mediaType, Map<String, Object> env) Return a newXMLReader
object for the specified content type.void
Report.setMediaType
(MediaType mediaType) Set the Media-Type of the content. -
Uses of MediaType in org.faceless.publisher.ext
Fields in org.faceless.publisher.ext declared as MediaTypeModifier and TypeFieldDescriptionstatic final MediaType
LessStylesheetExtension.MEDIATYPE
The synthetic MediaType "text/x-stylesheet-less" which is used to identify resources loaded by this ResourceLoaderstatic final MediaType
ScssStylesheetExtension.MEDIATYPE
The synthetic MediaType "text/x-stylesheet-less" which is used to identify resources loaded by this ResourceLoaderMethods in org.faceless.publisher.ext with parameters of type MediaType -
Uses of MediaType in org.faceless.publisher.output
Fields in org.faceless.publisher.output declared as MediaTypeMethods in org.faceless.publisher.output that return MediaTypeModifier and TypeMethodDescriptionDiscardReportOutput.getMediaType()
Return the type of object that would be written byReportOutput.write(java.io.OutputStream)
, or if that method doesn't apply, the type of Media generated by this ReportOutput.ReportOutput.getMediaType()
Return the type of object that would be written byReportOutput.write(java.io.OutputStream)
, or if that method doesn't apply, the type of Media generated by this ReportOutput.ReportOutputFilter.getMediaType()
Methods in org.faceless.publisher.output with parameters of type MediaType -
Uses of MediaType in org.faceless.publisher.output.pdf
Methods in org.faceless.publisher.output.pdf that return MediaTypeMethods in org.faceless.publisher.output.pdf with parameters of type MediaType -
Uses of MediaType in org.faceless.publisher.output.svg
Methods in org.faceless.publisher.output.svg that return MediaTypeMethods in org.faceless.publisher.output.svg with parameters of type MediaType -
Uses of MediaType in org.faceless.publisher.resource
Methods in org.faceless.publisher.resource that return MediaTypeModifier and TypeMethodDescriptionResource.getMediaType()
Return the MediaType for the Resource, which will be null until we have attemped to load it for the first time.ResourceDescriptor.getMediaType()
Return the MediaTypeZipURLConnectionFactory.getMediaType
(String name) Return the MediaType of the specified path if known, or null otherwiseMethods in org.faceless.publisher.resource with parameters of type MediaTypeModifier and TypeMethodDescriptionstatic URL2
DataURLConnectionFactory.create
(MediaType mediaType, InputStream data, Origin origin) Create a data URIstatic URL2
Create a data URI<E> E
Return the ResourceLoader that would be used to load an object of the specified type and class, or null if none exists.void
ZipURLConnectionFactory.putMediaType
(String key, MediaType mediaType) Add a MediaType mapping for a file that (may be) within this Zip fileResourceDescriptor.withMediaType
(MediaType mediaType) Create a new ResourceDescriptor that is this one with the specified MediaType -
Uses of MediaType in org.faceless.publisher.type
Fields in org.faceless.publisher.type declared as MediaTypeModifier and TypeFieldDescriptionstatic final MediaType
MediaType.WILDCARD
The wildcard MediaType */*Methods in org.faceless.publisher.type that return MediaTypeModifier and TypeMethodDescriptionFontResourceDescriptor.getFormat()
AbstractBlob.getMediaType()
Return theMediaType
of this Blob, or null if not knownBlob.getMediaType()
Return the MediaType, which will be set to WILDCARD if it was given as null;LinkResource.getMediaType()
Get the media-type as set byLinkResource.setMediaType(org.faceless.publisher.type.MediaType)
ReportResource.getMediaType()
MediaType.newParameter
(String key, String value) Set the named parameter in a new copy of this object and return it.Return a new MediaType that is a clone of the current one with a new type/subtypestatic MediaType
Returns a Media-Type for this String, or null if it is not well-formed.static MediaType
Returns a Media-Type for this String, or null if it is not well-formed.static MediaType
Sniffer.sniff
(InputStream in, URL2 uri) Given a mark-capable InputStream, attempt to guess the MediaType.static MediaType
Given a file at the specified path, sniff the file-typeMethods in org.faceless.publisher.type with parameters of type MediaTypeModifier and TypeMethodDescriptionstatic URL2
Util.createDataURL
(MediaType mediaType, InputStream in) Create a "data:" URL which will be Base-64 encoded.static URL2
Util.createDataURL
(MediaType mediaType, String data) Create a "data:" URL<E> E
FilterPropertyDeclarationEvaluationContext.getResource
(URL2 uri, MediaType mediaType, Class<E> resourceClass) <E> E
PropertyDeclarationEvaluationContext.getResource
(URL2 uri, MediaType mediaType, Class<E> resourceClass) Return the specified resource.FilterPropertyDeclarationEvaluationContext.getResourceLoader
(MediaType mediaType, Class<?> resourceClass) boolean
Return true if this MediaType matches the specified type.void
LinkResource.setMediaType
(MediaType mediaType) Set the content-type of this resource - normally this is inferred from the URL connectionvoid
Constructors in org.faceless.publisher.type with parameters of type MediaTypeModifierConstructorDescriptionBlob
(URL2 uri, MediaType type, InputStream in, long lastModified) Blob
(URL2 uri, MediaType type, ByteBuffer buf, long lastModified) ReportResource
(ReportFactory factory, URL2 url, MediaType mediaType, Blob source) -
Uses of MediaType in org.faceless.publisher.web
Fields in org.faceless.publisher.web declared as MediaType