ShapeFileIndexReader extends AbstractCommonShapeFileReader<ShapeFileIndexRecord> { public int getRecordCount() { try { readHeader(); } catch (IOException e) { return 0; } return this.recordCount; } ShapeFileIndexReader(ReadableByteChannel channel);  ShapeFileIndexReader(InputStream inputStream); @SuppressWarnings("resource")  ShapeFileIndexReader(File file);  ShapeFileIndexReader(URL file); int getRecordCount(); @Override void seek(int recordIndex);  }
@Test public void testGetRecordCount() throws Exception { assertEquals(TEST_FILE_RECORD_COUNT, this.reader.getRecordCount()); }