--- dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/AbstractAddressSource.java 2016/01/28 16:21:36 2869 +++ dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/AbstractAddressSource.java 2016/01/28 16:24:53 2870 @@ -52,7 +52,14 @@ System.out.println("Error on closing " + e.getMessage() ); } } - + /** + * Reads the first line, validates that there are the expected number of fields, and then + * re-initilze the inputstream - this is for file formats that does not use a header line. + * + * @param exptectedFieldCount + * @param seperator + * @throws IOException + */ protected void validatNoHeaderLine(int exptectedFieldCount, char seperator) throws IOException { try ( InputStream is1 = file.getInputStream(); @@ -77,6 +84,7 @@ br = new BufferedReader(isr); } + protected void validateWithHeader(int expectedFieldCount, char seperator) throws IOException { try { is = file.getInputStream();