getURI

open fun getURI(attributes: Attributes, attribute: String): URI

Extract timestamp from attribute

Note that there are three “URL” classes and you need to choose wisely:

java.net.URL
Java 1.0 class to handle URLs. Tries to resolve the URL on the net. Will hang and throw exception when this fails. Try to avoid if at all possible.
java.net.URI
Java 1.4 replacement for java.net.URL. Use when you need a instance which is java.io.Serializable.
android.net.Uri
Android replacement for java.net.URL. Use when you need a instance which is android.os.Parcelable.

Return

the attribute as timestamp or null

Parameters

attributes

attributes to extract if from

attribute

attribute to extract

Throws

if is not a url.