Contents

propertyList(with:options:format:)

Creates and returns a property list by reading from the specified stream.

Declaration

class func propertyList(with stream: InputStream, options opt: PropertyListSerialization.ReadOptions = [], format: UnsafeMutablePointer<PropertyListSerialization.PropertyListFormat>?) throws -> Any

Parameters

  • stream:

    An NSStream object. The stream should be open and configured for reading.

  • opt:

    The options used to create the property list. For possible values, see Mutabilityoptions.

  • format:

    Upon return, contains the format that the property list was stored in. Pass nil if you do not need to know the format.

Return Value

A property list object corresponding to the representation in data. If data is not in a supported format, returns nil.

Discussion

See Also

Deserializing a Property List