@Override public void close() throws SecurityException { outputWriter.close(); }
public void closeWriter() { writer.close(); } }
private void close() { io.getOut().close(); try { logResult.close(); } catch (IOException ex) { LOGGER.log(Level.INFO, null, ex); } } }
@Override public void closeInputOutput() { // Need to remove it from IOProvider first, doing that from EDT is loo late // because we may issue another getIO from the same thread (IZ 199441) TerminalIOProvider.remove(this); if (outputWriter != null) outputWriter.close(); Task task = new Task.StrongClose(ioContainer, terminal); task.post(); }
@Override public void run() { try { _execute(io, listener); } catch (Throwable th) { try { io.getErr().println("Internal error occured. Please report a bug.", null, true); // NOI18N } catch (IOException ex) { } io.getOut().close(); listener.executionFinished(-1); throw new RuntimeException(th); } } };
public static void printWarning(String info) { createOutput(); synchronized(io) { OutputWriter out = io.getOut(); Date date = new Date(); out.write("["); out.write(dateFormat.format(date)); out.write("] WARNING "); out.write(info); out.write("\n"); out.close(); } }
public static void printInfo(String info) { createOutput(); synchronized(io) { OutputWriter out = io.getOut(); Date date = new Date(); out.write("["); out.write(dateFormat.format(date)); out.write("] INFO "); out.write(info); out.write("\n"); out.close(); } }
public static void print(EventFrame ef) { createOutput(); synchronized(io) { OutputWriter out = io.getOut(); Date date = new Date(); out.write("["); out.write(dateFormat.format(date)); out.write("] EVENT "); out.write(ef.getMessage()); out.write("\n"); out.close(); } }
Thread.currentThread().interrupt(); } finally { io.getOut().close(); handle.finish(); hook.onFinish();
ErrorManager.getDefault().notify(exc); } finally { writer.close(); try { if (reader != null) {
LOGGER.log(Level.INFO, null, ex); } finally { io.getOut().close(); handle.finish();
LOGGER.log(Level.INFO, null, ex); } finally { io.getOut().close(); handle.finish();