GifResourceFormat
class GifResourceFormat
Implements: IResourceFormat
Package: dev.joid.lib.resource.format.impl · Module: core · Source: GifResourceFormat.java
The built-in format of GIF files, played as animated images.
Description
Section titled “Description”A GIF of one frame plays as an animation of one frame.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| GifResourceFormat() | Creates the format. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | supports(byte[] header) | If true, header starts with GIF87a or GIF89a. |
IResourceDecoder | decoder(Asset asset, byte[] header) | Returns an AnimatedResourceDecoder that reads the GIF. |
Creation details
Section titled “Creation details”GifResourceFormat
Section titled “GifResourceFormat”GifResourceFormat()
Creates the format.
Method details
Section titled “Method details”supports
Section titled “supports”boolean supports(byte[] header)
If true, header starts with GIF87a or GIF89a.
decoder
Section titled “decoder”IResourceDecoder decoder(Asset asset, byte[] header)
Returns an AnimatedResourceDecoder that reads the GIF.
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
