AbstractCommonShapeFileReader implements Iterable<E>, AutoCloseable { public ShapeElementType getShapeElementType() { if (!this.headerWasread) { try { readHeader(); } catch (IOException exception) { return null; } } return this.expectedShapeType; } AbstractCommonShapeFileReader(ReadableByteChannel inputStream);  AbstractCommonShapeFileReader(InputStream inputStream); @SuppressWarnings("resource")  AbstractCommonShapeFileReader(File file);  AbstractCommonShapeFileReader(URL file); @Pure Progression getTaskProgression(); void setTaskProgression(Progression progressBar); int getFileSize(); ShapeElementType getShapeElementType(); int getFileReadingPosition(); ESRIBounds getBoundsFromHeader(); @SuppressWarnings({"checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity"}) final void readHeader(); void disableSeek(); @Pure boolean isSeekEnabled(); abstract void seek(int recordIndex); E read(); @Override void close(); @Override Iterator<E> iterator(); Iterator<E> iterator(boolean disableSeek); Iterator<EE> iterator(Class<EE> type); Iterator<EE> iterator(Class<EE> type, boolean disableSeek);  }
@Test public void testGetShapeElementType() throws Exception { assertEquals(ShapeElementType.POLYGON, this.reader.getShapeElementType()); }