}
//lock.enter();
}
public void write() throws IOException {
GPSaver saver = myParserFactory.newSaver();
byte[] buffer;
try {
ByteArrayOutputStream bufferStream = new ByteArrayOutputStream();
saver.save(bufferStream);
bufferStream.flush();
buffer = bufferStream.toByteArray();
}
catch (IOException e) {
getUIFacade().showErrorDialog(e);