org.bedework.util.xml.XmlEmit.flush()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(146)

本文整理了Java中org.bedework.util.xml.XmlEmit.flush()方法的一些代码示例,展示了XmlEmit.flush()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlEmit.flush()方法的具体详情如下:
包路径:org.bedework.util.xml.XmlEmit
类名称:XmlEmit
方法名:flush

XmlEmit.flush介绍

暂无

代码示例

代码示例来源:origin: org.bedework/bw-util-servlet

private boolean emitError(final QName errorTag,
              final String extra,
              final Writer wtr) {
  try {
   XmlEmit xml = new XmlEmit();
//      syncher.addNamespace(xml);

   xml.startEmit(wtr);
   xml.openTag(WebdavTags.error);

   //    syncher.emitError(errorTag, extra, xml);

   xml.closeTag(WebdavTags.error);
   xml.flush();

   return true;
  } catch (Throwable t1) {
   // Pretty much screwed if we get here
   return false;
  }
 }

代码示例来源:origin: org.bedework/bw-util-config

/** Output to a writer
 *
 * @param wtr
 * @throws ConfigException
 */
public void toXml(final Writer wtr) throws ConfigException {
 try {
  XmlEmit xml = new XmlEmit();
  xml.addNs(new NameSpace(ns, "BW"), true);
  xml.startEmit(wtr);
  dump(xml, false);
  xml.flush();
 } catch (ConfigException cfe) {
  throw cfe;
 } catch (Throwable t) {
  throw new ConfigException(t);
 }
}

代码示例来源:origin: org.bedework.caleng/bw-calendar-engine-facade

xml.flush();
 return;
} catch (CalFacadeException cfe) {

相关文章