/** * Serialize to the given stream, closing it when finished. If * skipNonOverrides is true, any configuration whose values are all null * will not be written. */ public void toStream(boolean skipNonOverrides, OutputStream out) throws Exception { PrintWriter writer = null; try { writer = new PrintWriter(new OutputStreamWriter(out, "UTF-8")); write(skipNonOverrides, true, writer); } finally { try { writer.close(); } catch (Throwable th) { } try { out.close(); } catch (Throwable th) { } } }
write(m_defaultConfig, false, skipNonOverrides, writer); writer.println(">"); String role = bIter.next(); ServiceDeploymentRoleConfig bConfig = m_sDepConfigs.get(role); write(bConfig, true, skipNonOverrides, writer); MethodRoleConfig mConfig = bConfig.getMethodConfigs().get(methodName); write(mConfig, true, skipNonOverrides, writer);
write(m_defaultConfig, false, skipNonOverrides, writer); writer.println(">"); String role = bIter.next(); ServiceDeploymentRoleConfig bConfig = m_sDepConfigs.get(role); write(bConfig, true, skipNonOverrides, writer); MethodRoleConfig mConfig = bConfig.getMethodConfigs().get(methodName); write(mConfig, true, skipNonOverrides, writer);
/** * Serialize to the given stream, closing it when finished. If * skipNonOverrides is true, any configuration whose values are all null * will not be written. */ public void toStream(boolean skipNonOverrides, OutputStream out) throws Exception { PrintWriter writer = null; try { writer = new PrintWriter(new OutputStreamWriter(out, "UTF-8")); write(skipNonOverrides, true, writer); } finally { try { writer.close(); } catch (Throwable th) { } try { out.close(); } catch (Throwable th) { } } }
becfg.setInternalSSL(new Boolean(apiaSSL)); becfg.setInternalUsername("fedoraIntCallUser"); becfg.write(true, true, pwriter); pwriter.close();