- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {FileOutputStream f =
File file;new FileOutputStream(file)
String name;new FileOutputStream(name)
File file;new FileOutputStream(file, true)
- Smart code suggestions by Codota
}
public static MemoryDataStore newMemoryDataStore() { return new MemoryDataStoreWithProvidedFIDSupport(); }
public static MemoryDataStore newMemoryDataStore() { return new MemoryDataStoreWithProvidedFIDSupport(); }
public void exportToFile(File file, String tableName, ImmutableList<Feature> features) throws Exception { MemoryDataStore memStore = new MemoryDataStoreWithProvidedFIDSupport(); memStore.addFeatures(features); DataStore gpkgStore = createDataStore(file); try { export(memStore.getFeatureSource(tableName), gpkgStore); } finally { gpkgStore.dispose(); } }
public void exportToFile(File file, String tableName, ImmutableList<Feature> features) throws Exception { MemoryDataStore memStore = new MemoryDataStoreWithProvidedFIDSupport(); memStore.addFeatures(features); DataStore gpkgStore = createDataStore(file); try { export(memStore.getFeatureSource(tableName), gpkgStore); } finally { gpkgStore.dispose(); } }
public File createDefaultTestData() throws Exception { File file = createEmptyDatabase(); MemoryDataStore memStore = new MemoryDataStoreWithProvidedFIDSupport(); TestFeatures.setupFeatures(); memStore.addFeatures(ImmutableList.of(points1, points2, points3)); memStore.addFeatures(ImmutableList.of(lines1, lines2, lines3)); DataStore gpkgStore = createDataStore(file); try { export(memStore.getFeatureSource(pointsType.getName().getLocalPart()), gpkgStore); export(memStore.getFeatureSource(linesType.getName().getLocalPart()), gpkgStore); } finally { gpkgStore.dispose(); } return file; }
public File createDefaultTestData() throws Exception { File file = createEmptyDatabase(); MemoryDataStore memStore = new MemoryDataStoreWithProvidedFIDSupport(); TestFeatures.setupFeatures(); memStore.addFeatures(ImmutableList.of(points1, points2, points3)); memStore.addFeatures(ImmutableList.of(lines1, lines2, lines3)); DataStore gpkgStore = createDataStore(file); try { export(memStore.getFeatureSource(pointsType.getName().getLocalPart()), gpkgStore); export(memStore.getFeatureSource(linesType.getName().getLocalPart()), gpkgStore); } finally { gpkgStore.dispose(); } return file; }