/** * Saves the text in this editor to the specified location. * * @param loc The location to save to. * @throws IOException If an IO error occurs. */ private void saveImpl(FileLocation loc) throws IOException { OutputStream out = loc.getOutputStream(); BufferedWriter w = new BufferedWriter( new UnicodeWriter(out, getEncoding())); try { write(w); } finally { w.close(); } }
/** * Saves the text in this editor to the specified location. * * @param loc The location to save to. * @throws IOException If an IO error occurs. */ private void saveImpl(FileLocation loc) throws IOException { OutputStream out = loc.getOutputStream(); PrintWriter w = new PrintWriter( new BufferedWriter(new UnicodeWriter(out, getEncoding()))); try { write(w); } finally { w.close(); } }
/** * Saves the text in this editor to the specified location. * * @param loc The location to save to. * @throws IOException If an IO error occurs. */ private void saveImpl(FileLocation loc) throws IOException { OutputStream out = loc.getOutputStream(); BufferedWriter w = new BufferedWriter( new UnicodeWriter(out, getEncoding())); try { write(w); } finally { w.close(); } }
/** * Saves the text in this editor to the specified location. * * @param loc The location to save to. * @throws IOException If an IO error occurs. */ private void saveImpl(FileLocation loc) throws IOException { OutputStream out = loc.getOutputStream(); PrintWriter w = new PrintWriter( new BufferedWriter(new UnicodeWriter(out, getEncoding()))); try { write(w); } finally { w.close(); } }