/** * Read the feature id. * * @return the Feature Id * * @throws IOException If closed */ public String next() throws IOException { if (!this.opened) { throw new IOException(CLOSE_MESG); } buffer.delete(len, buffer.length()); buffer.append(reader.getRecordNumber()-1); return buffer.toString(); } }
return new Reader(atts, openShapeReader(), dbfR, goodRecs);
new IndexedFidReader(getCurrentTypeName(), temp!=0?getReadChannel(fixURL):fidIndexChannel)); if(attReader!=null && attReader.hasNext()){ shapeType=attReader.shp.getHeader().getShapeType(); handler = shapeType.getShapeHandler();
public void next() throws IOException { if( !hasNext() ) throw new IndexOutOfBoundsException("No more features in reader"); if (this.goodRecs != null) { this.recno = ((Integer) next.getValue(0)).intValue(); if (dbf != null) { dbf.goTo(this.recno); } Long l = (Long) next.getValue(1); shp.goTo((int) l.longValue()); next=null; } else { this.recno++; } record = shp.nextRecord(); if (dbf != null) { row = dbf.readRow(); } }