/** * Create a new instance<br> * Note: {@link StorageFile#replaceOriginal()} is NOT called. Call {@link #IndexedFidWriter(ShpFiles)} for that * behaviour. * @param shpFiles The shapefiles to used * @param storageFile the storage file that will be written to. It will NOT be closed. * @throws IOException */ public IndexedFidWriter( ShpFiles shpFiles, StorageFile storageFile ) throws IOException { // Note do NOT assign storageFile so that it is closed because this method method requires that // the caller close the storage file. // Call the single argument constructor instead init(shpFiles, storageFile); }
/** * Create a new instance<br> * Note: {@link StorageFile#replaceOriginal()} is NOT called. Call {@link #IndexedFidWriter(ShpFiles)} for that * behaviour. * @param shpFiles The shapefiles to used * @param storageFile the storage file that will be written to. It will NOT be closed. * @throws IOException */ public IndexedFidWriter( ShpFiles shpFiles, StorageFile storageFile ) throws IOException { // Note do NOT assign storageFile so that it is closed because this method method requires that // the caller close the storage file. // Call the single argument constructor instead init(shpFiles, storageFile); }
/** * Creates a new instance and writes the fids to a storage file which is replaces the original * on close(). * * @param shpFiles The shapefiles to used * @throws IOException */ public IndexedFidWriter( ShpFiles shpFiles ) throws IOException { storageFile = shpFiles.getStorageFile(FIX); init(shpFiles, storageFile); }
/** * Creates a new instance and writes the fids to a storage file which is replaces the original * on close(). * * @param shpFiles The shapefiles to used * @throws IOException */ public IndexedFidWriter( ShpFiles shpFiles ) throws IOException { storageFile = shpFiles.getStorageFile(FIX); init(shpFiles, storageFile); }