Here you can find the source of getString(ResultSet rs, int index, boolean trim)
public static String getString(ResultSet rs, int index, boolean trim) throws java.sql.SQLException
//package com.java2s; // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt import java.sql.ResultSet; public class Main { public static String getString(ResultSet rs, int index, boolean trim) throws java.sql.SQLException { String result = rs.getString(index); if (trim && result != null) { return result.trim(); }/* w w w. jav a 2 s. c o m*/ return result; } }