public void serialize(File file, int flags) throws IOException { if (_log != null) _log.info(_loc.get("ser-file", file)); _backup = prepareWrite(file); try { FileWriter out = new FileWriter( AccessController.doPrivileged( J2DoPrivHelper.getCanonicalPathAction(file)), (flags & APPEND) > 0); serialize(out, flags); out.close(); } catch (PrivilegedActionException pae) { throw (IOException) pae.getException(); } }
public void serialize(File file, int flags) throws IOException { if (_log != null) _log.info(_loc.get("ser-file", file)); _backup = prepareWrite(file); try { FileWriter out = new FileWriter( (String) AccessController.doPrivileged( J2DoPrivHelper.getCanonicalPathAction(file)), (flags & APPEND) > 0); serialize(out, flags); out.close(); } catch (PrivilegedActionException pae) { throw (IOException) pae.getException(); } }
public void serialize(File file, int flags) throws IOException { if (_log != null) _log.info(_loc.get("ser-file", file)); _backup = prepareWrite(file); try { FileWriter out = new FileWriter( AccessController.doPrivileged( J2DoPrivHelper.getCanonicalPathAction(file)), (flags & APPEND) > 0); serialize(out, flags); out.close(); } catch (PrivilegedActionException pae) { throw (IOException) pae.getException(); } }
public void serialize(File file, int flags) throws IOException { if (_log != null) _log.info(_loc.get("ser-file", file)); _backup = prepareWrite(file); try { FileWriter out = new FileWriter( AccessController.doPrivileged( J2DoPrivHelper.getCanonicalPathAction(file)), (flags & APPEND) > 0); serialize(out, flags); out.close(); } catch (PrivilegedActionException pae) { throw (IOException) pae.getException(); } }
Writer writer; if (output == null) { _backup = prepareWrite(file); writer = new FileWriter(file); } else
Writer writer; if (output == null) { _backup = prepareWrite(file); writer = new FileWriter(file); } else
Writer writer; if (output == null) { _backup = prepareWrite(file); writer = new FileWriter(file); } else
Writer writer; if (output == null) { _backup = prepareWrite(file); writer = new FileWriter(file); } else