@Test public void testEmptyCollection() throws Exception { SimpleFeatureCollection fc = getFeaturesFromProperties(BASIC_POLYGONS).subCollection(Filter.EXCLUDE); ShapefileDumper dumper = new ShapefileDumper(dumperFolder); assertFalse(dumper.dump(fc)); SimpleFeatureCollection actual = getFeaturesFromShapefile(BASIC_POLYGONS); assertEquals(0, actual.size()); assertFieldsNotEmpty(actual); checkTypeStructure(actual.getSchema(), MultiPolygon.class, "ID"); }
public boolean dump(SimpleFeatureCollection fc) throws IOException { return dump(null, fc); }
ShapefileDumper { public boolean dump(SimpleFeatureCollection fc) throws IOException { return dump(null, fc); } }
ShapefileDumper { public boolean dump(SimpleFeatureCollection fc) throws IOException { return dump(null, fc); } ShapefileDumper(File targetDirectory); }
ShapefileDumper { public boolean dump(SimpleFeatureCollection fc) throws IOException { return dump(null, fc); } ShapefileDumper(File targetDirectory); long getMaxShpSize(); void setMaxShpSize(long maxShapeSize); long getMaxDbfSize(); void setMaxDbfSize(long maxDbfSize); Charset getCharset(); void setCharset(Charset charset); boolean isEmptyShapefileAllowed(); void setEmptyShapefileAllowed(boolean emptyShapefileAllowed); boolean dump(SimpleFeatureCollection fc); boolean dump(String fileName, SimpleFeatureCollection fc); }
ShapefileDumper { public boolean dump(SimpleFeatureCollection fc) throws IOException { return dump(null, fc); } ShapefileDumper(File targetDirectory); long getMaxShpSize(); void setMaxShpSize(long maxShapeSize); long getMaxDbfSize(); void setMaxDbfSize(long maxDbfSize); Charset getCharset(); void setCharset(Charset charset); boolean isEmptyShapefileAllowed(); void setEmptyShapefileAllowed(boolean emptyShapefileAllowed); boolean dump(SimpleFeatureCollection fc); boolean dump(String fileName, SimpleFeatureCollection fc);  }