121122123124125126127128129130131
System.exit(0); } f.addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent e){ try { buffer.closeServer(); } catch (IOException e1) { e1.printStackTrace(); System.exit(0); } new TestBinary(buffer,"TEST");
7071727374757677787980
default: result = Any.NULL; break; } try { ftpClient.closeServer(); } catch (Exception e) { //context.log().error("Can not close ftp connection"); } return result; }
126127128129130131132133134135136
default: result = Any.FALSE; break; } try { ftpClient.closeServer(); } catch (Exception e) { //anvil.Log.log().error("Can not close ftp connection"); } return result; }
150151152153154155156157158159160
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(ftpClient.put(ftpURL.file))); writer.write(string); writer.close(); Any result = Any.TRUE; try { ftpClient.closeServer(); } catch (Exception e) { //anvil.Log.log().error("Can not close ftp connection"); } return result; }