ContentParser

fun interface ContentParser(source)

Parses raw string content (SVG or AVG markup) into an IconFileContents domain model.

This is the content-based counterpart to ImageParser, which operates on files. Implementations handle a single file format each, following the Strategy pattern.

Inheritors

Functions

Link copied to clipboard
abstract fun parse(content: String, iconName: String, config: ParserConfig): IconFileContents

Parses the given content markup into an IconFileContents domain model.