private String readEmptyLineOrEndTable ( final BufferedReader tableContent ) throws IOException { final String column = tableContent . readLine ( ) ; if ( column != null && column . startsWith ( END_TABLE ) ) { return END_TABLE ; } if ( column == null || ! column . isEmpty ( ) ) { throw new IllegalArgumentException ( String . format ( "Trying to read an empty line for end of row, but content %s was found or EOF" , column ) ) ; } return "" ; }
Reads empty line or throw an exception if a none empty line was found .