org.pageseeder.xmlwriter.XMLStringWriter.toString()方法的使用及代码示例

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

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

XMLStringWriter.toString介绍

暂无

代码示例

代码示例来源:origin: org.pageseeder.bridge/pso-bridge

@Override
 public String toPSML() {
  try {
   XMLStringWriter xml = new XMLStringWriter(NamespaceAware.No);
   toXML(xml);
   return xml.toString();
  } catch (IOException ex) {
   // Should NEVER occur since we write to a string
   throw new IllegalStateException("Unable to write PSML for fragment", ex);
  }
 }
}

代码示例来源:origin: org.pageseeder.bridge/pso-bridge

XMLStringWriter xml = this.xmlContent;
if (xml != null) {
 tmp.addMessage(xml.toString());
 this.xmlContent = null;

代码示例来源:origin: org.pageseeder.bastille/pso-bastille

@Override
public void process(ContentRequest req, XMLWriter xml) throws BerliozException, IOException {
 LOGGER.debug(req.getBerliozPath());
 // Get all the files
 String pathInfo = normalise(req.getBerliozPath());
 File dir = getDirectory(req);
 if (dir.exists() && dir.isDirectory()) {
  List<File> files = getContents(dir);
  long modified = lastModified(files);
  // Initialise the cache
  if (this.cache == null) {
   this.cache = newCache();
  }
  Element cached = this.cache.get(pathInfo);
  String data = null;
  if ((cached == null) || (cached.getLastUpdateTime() < modified)) {
   XMLStringWriter buffer = new XMLStringWriter(false);
   processOverview(dir, files, buffer);
   data = buffer.toString();
   this.cache.put(new Element(pathInfo, data));
  } else {
   data = (String)cached.getObjectValue();
  }
  xml.writeXML(data);
 }
}

代码示例来源:origin: org.pageseeder.berlioz/pso-berlioz

String parsed = copy.toString();

代码示例来源:origin: org.pageseeder.bastille/pso-bastille

return xml.toString();

代码示例来源:origin: org.pageseeder.bastille/pso-bastille

XMLStringWriter buffer = new XMLStringWriter(false);
 processOverview(folder, files, buffer);
 data = buffer.toString();
 cache.put(new Element(folder.path(), data));
} else {

代码示例来源:origin: org.pageseeder.berlioz/pso-berlioz

String parsed = copy.toString();

代码示例来源:origin: org.pageseeder.ox/pso-ox-core

FileUtils.write(writer.toString(), foutput);

代码示例来源:origin: org.pageseeder.bastille/pso-bastille

data = xml.toString();
entry = new CachedProcessed(data, linked);
cache.put(new Element(psml.path(), entry));
xml.closeElement();
xml.flush();
data = xml.toString();

代码示例来源:origin: org.pageseeder.flint/pso-flint-lucene

xsw.writeXML(extract);
xsw.closeElement();
extractXML = xsw.toString();
break bigloop;

代码示例来源:origin: org.pageseeder.bastille/pso-bastille

return xml.toString();

相关文章