/** * Writes data to the output file. * * @param data * The data to be written. */ public void writeField(String data) { initialize(); try { separateField(); writer.write(escapeString(data)); } catch (IOException e) { throw new OsmosisRuntimeException("Unable to write value (" + data + ")", e); } }
/** * Writes data to the output file. * * @param data * The data to be written. */ public void writeField(Geometry data) { initialize(); try { separateField(); if (data == null) { writer.write(escapeString(null)); } else { writer.write(postgisBinaryWriter.writeHexed(data)); } } catch (IOException e) { throw new OsmosisRuntimeException("Unable to write value (" + data + ")", e); } }