本文整理了Java中org.pageseeder.xmlwriter.XMLStringWriter.<init>()
方法的一些代码示例,展示了XMLStringWriter.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLStringWriter.<init>()
方法的具体详情如下:
包路径:org.pageseeder.xmlwriter.XMLStringWriter
类名称:XMLStringWriter
方法名:<init>
暂无
代码示例来源: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.flint/pso-flint-solr
public static void main(String[] args) throws SolrFlintException, IOException {
XMLWriter xml = new XMLStringWriter(NamespaceAware.No);
ClusterStatus status = new SolrCollectionManager("http://localhost:8983/solr").getClusterStatus();
if (status != null) status.toXML(xml);
System.out.println(xml.toString());
}
}
代码示例来源:origin: org.pageseeder.bridge/pso-bridge
} else if ("message".equals(localName) &&
((this.oldFormat && "threadstatus".equals(dad)) || (!this.oldFormat && "thread".equals(dad)))) {
this.xmlContent = new XMLStringWriter(NamespaceAware.No);
代码示例来源:origin: org.pageseeder.bridge/pso-bridge
this.xmlContent = new XMLStringWriter(NamespaceAware.No);
} else {
this.buffer = new StringBuilder();
代码示例来源: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
try {
XMLStringWriter copy = new XMLStringWriter(NamespaceAware.No);
代码示例来源:origin: org.pageseeder.bastille/pso-bastille
XMLStringWriter xml = new XMLStringWriter(false, false);
xml.openElement("psml-file");
xml.attribute("name", file.getName());
代码示例来源:origin: org.pageseeder.bastille/pso-bastille
String data = null;
if (cached == null || cached.getLastUpdateTime() < modified) {
XMLStringWriter buffer = new XMLStringWriter(false);
processOverview(folder, files, buffer);
data = buffer.toString();
代码示例来源:origin: org.pageseeder.berlioz/pso-berlioz
XMLStringWriter copy = new XMLStringWriter(NamespaceAware.No);
代码示例来源:origin: org.pageseeder.ox/pso-ox-core
XMLStringWriter writer = new XMLStringWriter(NamespaceAware.No);
writer.openElement("root");
List<File> files = data.getFiles(input);
代码示例来源:origin: org.pageseeder.bastille/pso-bastille
XMLStringWriter xml = new XMLStringWriter(false);
try {
xml = new XMLStringWriter(false);
xml.openElement("psml-file");
xml.attribute("name", file.getName());
代码示例来源:origin: org.pageseeder.flint/pso-flint-lucene
String extract = Documents.extract(Fields.toString(f), t.text(), 200);
if (extract != null) {
XMLStringWriter xsw = new XMLStringWriter(NamespaceAware.No);
xsw.openElement("extract");
xsw.attribute("from", t.field());
代码示例来源:origin: org.pageseeder.bastille/pso-bastille
XMLStringWriter xml = new XMLStringWriter(false, false);
xml.openElement("event");
xml.attribute("level", this._level.toString());
内容来源于网络,如有侵权,请联系作者删除!