class CharsetDecodeOptions
source · line 54public
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 58public
public val bom: CharsetBomPolicy = CharsetBomPolicy.Consume
get: public read-only
The policy applied to an initial byte-order mark.
constructor constructor
source · line 54public
constructor(public val bom: CharsetBomPolicy = CharsetBomPolicy.Consume, public val defaultByteOrder: ByteOrder? = None)
parameter defaultByteOrder
source · line 62public
public val defaultByteOrder: ByteOrder? = None
parameter bom
source · line 58public
public val bom: CharsetBomPolicy = CharsetBomPolicy.Consume
property defaultByteOrder
source · line 62public
public val defaultByteOrder: ByteOrder? = None
get: public read-only
Fallback order for an encoding whose byte order must otherwise be determined from a BOM.