Scoop API

scoop:scoop.charset:0.1.0

CharsetTranscodeOptions

class CharsetTranscodeOptions

source · line 83
public
public class CharsetTranscodeOptions public constructor(
    /**
     * The source BOM and byte-order policy.
     */
    public val decode: CharsetDecodeOptions = CharsetDecodeOptions(),
    /**
     * The destination BOM and byte-order policy.
     */
    public val encode: CharsetEncodeOptions = CharsetEncodeOptions(),
    /**
     * How to handle source bytes that do not form valid encoded text.
     */
    public val malformedInput: CharsetErrorAction = CharsetErrorAction.Strict,
    /**
     * How to handle valid characters unavailable in the destination encoding.
     */
    public val unmappableOutput: CharsetErrorAction = CharsetErrorAction.Strict
)

Independent source-decoding and destination-encoding policies for a conversion. Malformed source bytes and unmappable output characters have separate error actions.

property malformedInput

source · line 95
public
public val malformedInput: CharsetErrorAction = CharsetErrorAction.Strict

get: public read-only

How to handle source bytes that do not form valid encoded text.

property unmappableOutput

source · line 99
public
public val unmappableOutput: CharsetErrorAction = CharsetErrorAction.Strict

get: public read-only

How to handle valid characters unavailable in the destination encoding.

constructor constructor

source · line 83
public
constructor(public val decode: CharsetDecodeOptions = CharsetDecodeOptions(), public val encode: CharsetEncodeOptions = CharsetEncodeOptions(), public val malformedInput: CharsetErrorAction = CharsetErrorAction.Strict, public val unmappableOutput: CharsetErrorAction = CharsetErrorAction.Strict)