protected static String cut ( String delimiter , int column , String lineText ) { if ( lineText == null || lineText . isEmpty ( ) ) { return null ; } final String [ ] columns = lineText . split ( Pattern . quote ( delimiter ) ) ; if ( columns != null && column >= 0 && column < columns . length ) { return columns [ column ] . trim ( ) ; } return null ; }
Cut the line in columns and replies the given column .