There are several types that convert a Picture into something else:
Writer
Base64
BufferedImageConverter
There will probably be a lot more in the future. Let's name this concept and have a consistent naming scheme for the types that implement it.
I propose calling this a writer. Methods on different writers will be different (e.g. a FileWriter will take a file name, where as a Base64Writer will not.) but it is possible to implement a marker trait, as is done for Algebra and Format.
There are several types that convert a
Picture
into something else:Writer
Base64
BufferedImageConverter
There will probably be a lot more in the future. Let's name this concept and have a consistent naming scheme for the types that implement it.
I propose calling this a writer. Methods on different writers will be different (e.g. a
FileWriter
will take a file name, where as aBase64Writer
will not.) but it is possible to implement a marker trait, as is done forAlgebra
andFormat
.Writer
marker traitWriter
,Base64
etc to extend marker traitFileWriter
,Base64Writer
, etc. for consistent naming