AbstractCommonShapeFileWriter implements AutoCloseable { public final void write(E element) throws IOException { write(Collections.singleton(element)); } @SuppressWarnings("resource")  AbstractCommonShapeFileWriter(File shapeName, ShapeElementType elementType);  AbstractCommonShapeFileWriter(URL shapeName, ShapeElementType elementType);  AbstractCommonShapeFileWriter(OutputStream stream, ShapeElementType elementType);  AbstractCommonShapeFileWriter(WritableByteChannel channel, ShapeElementType elementType); ShapeElementType getElementType(); Progression getTaskProgression(); void setTaskProgression(Progression progressBar); @Override @SuppressWarnings("resource") void close(); final void write(E element); void write(Collection<? extends E> elements);  }
@Test public void testWriteE() throws Exception { this.writer.write(1); assertEquals(1, this.writer.lastWritten); this.writer.write(1024); assertEquals(1024, this.writer.lastWritten); }
@Test public void testWriteCollection() throws Exception { this.writer.write(Arrays.asList(1, 2, 3, 4)); assertEquals(4, this.writer.lastWritten); }