mixincamAxonPlugin::GridReader
camAxonPlugin::GridReader
@
Js
GridReader is the interface for reading an encoding of grid data All implementations must have a constructor make(InStream)
.
- fromMime
static Type? fromMime(MimeType mime, Bool checked := true)
Find the GridReader to use for the given mime type. GridReaders are registered on a mime type using indexed props:
// template haystack.grid.reader.mime.{mime}={qname} // example haystack.grid.reader.mime.text/zinc=haystack::ZincReader
Given a type, you can construct a new reader as follows:
GridReader.fromMime(mime).make([in])
- readGrid
abstract Grid readGrid()
Read a single grid
- readGrids
abstract Grid[] readGrids()
Read a list of grids