mixincamAxonPlugin::GridWriter
camAxonPlugin::GridWriter
@
Js
GridWriter is the interface for writing an encoding of grid data. All implementations must have a constructor make(OutStream)
- fromMime
static Type? fromMime(MimeType mime, Bool checked := true)
Find the GridWriter type to use for the given mime type. GridWriters are registered on a mime type using indexed props:
// template haystack.grid.writer.mime.{mime}={qname} // example haystack.grid.writer.mime.text/zinc=haystack::ZincWriter
Given a type, you can construct a new writer as follows:
GridWriter.fromMime(mime).make([out])
- writeGrid
abstract This writeGrid(Grid grid)
Write a single grid
- writeGrids
abstract This writeGrids(Grid[] grids)
Write a list of grids