SvgResourceFormat
class SvgResourceFormat
Implements: IResourceFormat
Package: dev.joid.lib.resource.format.impl · Module: core · Source: SvgResourceFormat.java
The built-in format of SVG files, rendered as vector images at the size they are drawn.
Description
Section titled “Description”The root element must be <svg>; an XML declaration, comments and a doctype before it are skipped.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| SvgResourceFormat() | Creates the format. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | supports(byte[] header) | If true, the first element of header is <svg. |
IResourceDecoder | decoder(Asset asset, byte[] header) | Returns a VectorResourceDecoder that renders the document. |
Creation details
Section titled “Creation details”SvgResourceFormat
Section titled “SvgResourceFormat”SvgResourceFormat()
Creates the format.
Method details
Section titled “Method details”supports
Section titled “supports”boolean supports(byte[] header)
If true, the first element of header is <svg.
decoder
Section titled “decoder”IResourceDecoder decoder(Asset asset, byte[] header)
Returns a VectorResourceDecoder that renders the document.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
