dbfHeader = createDbaseHeader(); dbfWriter = new DbaseFileWriter(dbfHeader, dbfChannel);
write(); getFeatureType(), getCurrentTypeName()+"."+id, emptyAtts); } catch (IllegalAttributeException iae) { throw new DataSourceException("Error creating empty Feature",
/** * Create a FeatureWriter for the given type name. * * @param typeName * The typeName of the FeatureType to write * @param transaction * DOCUMENT ME! * * @return A new FeatureWriter. * * @throws IOException * If the typeName is not available or some other error occurs. */ protected FeatureWriter createFeatureWriter(String typeName, Transaction transaction) throws IOException { typeCheck(typeName); return new Writer(typeName); }
/** * In case someone doesn't close me. * * @throws Throwable * DOCUMENT ME! */ protected void finalize() throws Throwable { if (featureReader != null) { try { close(); } catch (Exception e) { // oh well, we tried } } }