Writer
in package
FinalYes
Table of Contents
Methods
- bomByDefault() : bool
- Whether a file written anew starts with a byte order mark (SPEC section 3): 7.0 and 5.5.5 always, any version in UTF-16, not 5.5 and 5.5.1 in UTF-8 (some old programs do not recognize "0 HEAD" after a BOM). Encodings without a BOM have none.
- serialize() : string
Methods
bomByDefault()
Whether a file written anew starts with a byte order mark (SPEC section 3): 7.0 and 5.5.5 always, any version in UTF-16, not 5.5 and 5.5.1 in UTF-8 (some old programs do not recognize "0 HEAD" after a BOM). Encodings without a BOM have none.
public
static bomByDefault(Version $version, Encoding $encoding) : bool
Parameters
Return values
boolserialize()
public
serialize(Document $document[, WriteOptions $options = new WriteOptions() ][, array<int, int>|null $records = null ]) : string
Parameters
- $document : Document
- $options : WriteOptions = new WriteOptions()
- $records : array<int, int>|null = null
-
@internal only these records, in this order (convertFile())