public PointFeature next() throws IOException { if (feature == null) return null; calcBounds(feature); return feature; }
public boolean hasNext() throws IOException { while (true) { StructureData sdata = nextStructureData(); if (sdata == null) break; feature = makeFeature(structIter.getCurrentRecno(), sdata); if (feature == null) continue; if (feature.getLocation().isMissing()) { continue; } if (filter == null || filter.filter(feature)) return true; } // all done feature = null; finish(); return false; }
@Override public boolean hasNext() { try { while (true) { StructureData sdata = nextStructureData(); if (sdata == null) break; feature = makeFeature(structIter.getCurrentRecno(), sdata); if (feature == null) continue; if (feature.getLocation().isMissing()) { continue; } if (filter == null || filter.filter(feature)) return true; } // all done feature = null; close(); return false; } catch (IOException ioe) { throw new RuntimeException(ioe); } }
public void finish() { if (finished) return; finishCalcBounds(); finished = true; structIter.finish(); }
@Override public void close() { System.out.printf("BufrRecordIterator passed %d features super claims %d%n", countHere, getInfo().nfeatures); super.close(); }
public boolean hasNext() throws IOException { while (true) { StructureData sdata = nextStructureData(); if (sdata == null) break; feature = makeFeature(structIter.getCurrentRecno(), sdata); if (feature == null) continue; if (feature.getLocation().isMissing()) { continue; } if (filter == null || filter.filter(feature)) return true; } // all done feature = null; finish(); return false; }
public void finish() { if (finished) return; finishCalcBounds(); finished = true; structIter.finish(); }
@Override public void close() { if (finished) return; finishCalcBounds(); finished = true; structIter.close(); }
@Override public PointFeature next() { if (feature == null) return null; calcBounds(feature); return feature; }
public PointFeature next() throws IOException { if (feature == null) return null; calcBounds(feature); return feature; }