@Test public void testLongNames() throws Exception { SimpleFeatureCollection fc = getFeaturesFromProperties(LONGNAMES); ShapefileDumper dumper = new ShapefileDumper(dumperFolder); dumper.dump(fc); SimpleFeatureCollection actual = getFeaturesFromShapefile(LONGNAMES); assertEquals(2, actual.size()); assertFieldsNotEmpty(actual); checkTypeStructure( actual.getSchema(), MultiPolygon.class, "FID", "VERYLONGNA", "VERYLONGN0"); assertCst(LONGNAMES, "ISO-8859-1"); }
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);  }