exjprop v0.1.0 Exjprop.Properties.Stream

Summary

Functions

Returns {:ok, value} where value may be nil if the property is empty or does not exist

Get the value of a property. Returns nil if the property does not exist

Load the resource

Returns true/false if the properties have been loaded

Create a new stream properties

Get the properties as a map

Functions

get_property(stream, property)

Returns {:ok, value} where value may be nil if the property is empty or does not exist

get_property!(props, property)

Get the value of a property. Returns nil if the property does not exist.

Raises a ResourceNotLoadedException if the file has not be loaded yet.

load(stream_props)

Load the resource

loaded?(stream)

Returns true/false if the properties have been loaded

new(stream)

Create a new stream properties

to_map(stream)

Get the properties as a map