kantan.codecs.resource.bom

Adds Byte Order Mark support to resources.

By importing this package, the default behaviour of kantan libraries will be changed to: * add a BOM when writing textual data (if one exists for the output charset). * attempt to find a BOM when reading textual data and, if one is found, use the corresponding charset (potentially overriding whatever charset was specified "in-code").

Those behaviours are not enabled by default as they're very Microsoft-specific.

Attributes

Members list

Type members

Classlikes

object BomReader

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
BomReader.type
object BomWriter

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
BomWriter.type

Implicits

Implicits

implicit def readerFromStream[A : InputResource](implicit evidence$1: InputResource[A], codec: Codec): ReaderResource[A]
implicit def writerFromStream[A : OutputResource](implicit evidence$1: OutputResource[A], codec: Codec): WriterResource[A]