Here you can find the source of getURI(ResultSet resultSet, String columnLabel)
public static URI getURI(ResultSet resultSet, String columnLabel) throws SQLException
//package com.java2s; //License from project: Open Source License import java.net.URI; import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static URI getURI(ResultSet resultSet, String columnLabel) throws SQLException { return toURI(resultSet.getString(columnLabel)); }//from w ww.j a va 2s . c o m public static URI toURI(String uri) { if (uri == null) return null; return URI.create(uri); } }