Here you can find the source of getPath(ResultSet r, String columnName)
public static Path getPath(ResultSet r, String columnName) throws SQLException
//package com.java2s; //License from project: Apache License import java.nio.file.Path; import java.nio.file.Paths; import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static Path getPath(ResultSet r, String columnName) throws SQLException { String val = r.getString(columnName); return val != null ? Paths.get(val) : null; }/*w ww . j a va2 s . c om*/ }