Scoop API

scoop:scoop.charset:0.1.0

CharsetDecodeOptions

class CharsetDecodeOptions

source · line 54
public
public class CharsetDecodeOptions public constructor(
    /**
     * The policy applied to an initial byte-order mark.
     */
    public val bom: CharsetBomPolicy = CharsetBomPolicy.Consume,
    /**
     * Fallback order for an encoding whose byte order must otherwise be determined from a BOM.
     */
    public val defaultByteOrder: ByteOrder? = None
)

BOM handling and fallback byte order for decoding. Explicit-endian encodings retain their own byte-order contract.

property bom

source · line 58
public
public val bom: CharsetBomPolicy = CharsetBomPolicy.Consume

get: public read-only

The policy applied to an initial byte-order mark.

property defaultByteOrder

source · line 62
public
public val defaultByteOrder: ByteOrder? = None

get: public read-only

Fallback order for an encoding whose byte order must otherwise be determined from a BOM.