@Throws(javax.print.URIException::class) fun URI( scheme: String?, userinfo: String?, host: String?, port: Int, path: String?, query: String?, fragment: String? ) { this( scheme, if (host == null) null else (if (userinfo != null) "$userinfo@" else "") + host + if (port != -1) ":$port" else "", path, query, fragment ) }
Construct a general URI from the given components .