Revision: 6088 http://sourceforge.net/p/jump-pilot/code/6088 Author: edso Date: 2019-01-17 14:08:36 +0000 (Thu, 17 Jan 2019) Log Message: ----------- revert last commit because of wrong commit message
Modified Paths: -------------- core/trunk/src/org/geotools/shapefile/Shapefile.java Modified: core/trunk/src/org/geotools/shapefile/Shapefile.java =================================================================== --- core/trunk/src/org/geotools/shapefile/Shapefile.java 2019-01-17 14:04:44 UTC (rev 6087) +++ core/trunk/src/org/geotools/shapefile/Shapefile.java 2019-01-17 14:08:36 UTC (rev 6088) @@ -85,17 +85,16 @@ } private EndianDataInputStream getInputStream() throws IOException { - if (shpInputStream == null && baseURL != null) { - try { + try { URLConnection uc = baseURL.openConnection(); // a 16 kb buffer may be up to 20% faster than the default 2 kb buffer - shpInputStream = new BufferedInputStream(uc.getInputStream(), 16 * 1024); - } catch (Exception e) { + shpInputStream = new BufferedInputStream(uc.getInputStream(), 16*1024); + } + catch (Exception e){ Logger.error(e); - } - if (shpInputStream == null) { + } + if (shpInputStream == null) { throw new IOException("Couldn't make a connection to the URL: " + baseURL); - } } return new EndianDataInputStream(shpInputStream); } _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel