* @return
*/
public static <TContainer> IParser<TContainer, Integer> getIndexParser(TContainer rs) {
IParser parser;
if (rs instanceof ResultSet) {
parser = new SQLLineParserByIndex();
} else if (rs instanceof String[]) {
parser = new StringArrayParser();
} else {
throw new IllegalArgumentException("Line must be a ResultSet or String[], not " + rs.getClass());
}