Skip to content

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.

The root element must be <svg>; an XML declaration, comments and a doctype before it are skipped.

ReturnsSignatureSummary
SvgResourceFormat()Creates the format.

ReturnsSignatureSummary
booleansupports(byte[] header)If true, the first element of header is <svg.
IResourceDecoderdecoder(Asset asset, byte[] header)Returns a VectorResourceDecoder that renders the document.

SvgResourceFormat()

Creates the format.

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.


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

Report a problem with this page