- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中net.ontopia.topicmaps.xml.XTMTopicMapWriter.setVersion()
方法的一些代码示例,展示了XTMTopicMapWriter.setVersion()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XTMTopicMapWriter.setVersion()
方法的具体详情如下:
包路径:net.ontopia.topicmaps.xml.XTMTopicMapWriter
类名称:XTMTopicMapWriter
方法名:setVersion
[英]PUBLIC: Set XTM version to use on export.
[中]PUBLIC:将XTM版本设置为在导出时使用。
代码示例来源:origin: ontopia/ontopia
setVersion((XTMVersion) value);
代码示例来源:origin: ontopia/ontopia
protected void export() throws IOException {
XTMTopicMapWriter writer = new XTMTopicMapWriter(tmfile);
writer.setVersion(version);
writer.setAddIds(true);
writer.write(topicmap);
}
代码示例来源:origin: ontopia/ontopia
@Override
protected void writeFragment(OutputStream outputStream, Object source, CharacterSet characterSet) throws IOException {
if (source instanceof TopicMapIF) {
XTMTopicMapWriter writer = new XTMTopicMapWriter(outputStream, characterSet.getName());
writer.setVersion(XTMVersion.XTM_2_1); // todo: config
writer.write((TopicMapIF) source);
}
if (source instanceof TopicIF) {
XTMTopicMapFragmentWriter writer = new XTMTopicMapFragmentWriter(outputStream, characterSet.getName());
writer.startTopicMap();
writer.exportTopic((TopicIF) source);
writer.endTopicMap();
}
// todo: can source be any other class here?
}
}
代码示例来源:origin: ontopia/ontopia
if (filter != null)
filterer.setFilter(decider);
filterer.setVersion(XTMVersion.XTM_1_0);
writer = filterer;
} else if (format.equalsIgnoreCase("xtm2")) {
代码示例来源:origin: net.ontopia/ontopoly-editor
if (filter != null)
filterer.setFilter(decider);
filterer.setVersion(XTMVersion.XTM_1_0);
writer = filterer;
} else if (format.equalsIgnoreCase("xtm2")) {
代码示例来源:origin: ontopia/ontopia
@Test
public void testEncoding2() throws IOException {
TopicMapIF tm = load(testdataDirectory, "in", "latin1.xtm");
File out = TestFileUtils.getTestOutputFile(testdataDirectory, "out", "tmp-utf-8.xtm");
XTMTopicMapWriter writer = new XTMTopicMapWriter(out);
writer.setVersion(XTMVersion.XTM_1_0);
writer.write(tm);
TopicMapIF tm2 = new XTMTopicMapReader(out).read();
// check for a topic that has at least one name
for (Object obj : tm2.getTopics()) {
Collection<TopicNameIF> names = ((TopicIF) obj).getTopicNames();
if (names != null && names.size() > 0) {
TopicNameIF bn = names.iterator().next();
Assert.assertTrue("base name value did not survive encoding change roundtrip",
bn.getValue().equals("B\u00E6 b\u00E6 lille lam, har du noe \u00F8l"));
}
}
}
代码示例来源:origin: ontopia/ontopia
@Test
public void testEncoding() throws IOException {
TopicMapIF tm = load(testdataDirectory, "in", "latin1.xtm");
File out = TestFileUtils.getTestOutputFile(testdataDirectory, "out", "tmp-latin1.xtm");
XTMTopicMapWriter writer = new XTMTopicMapWriter(out, "iso-8859-1");
writer.setVersion(XTMVersion.XTM_1_0);
writer.write(tm);
TopicMapIF tm2 = new XTMTopicMapReader(out).read();
// check for a topic that has at least one name
for (Object obj : tm2.getTopics()) {
Collection<TopicNameIF> names = ((TopicIF) obj).getTopicNames();
if (names != null && names.size() > 0) {
TopicNameIF bn = names.iterator().next();
Assert.assertTrue("base name value did not survive encoding change roundtrip",
bn.getValue().equals("B\u00E6 b\u00E6 lille lam, har du noe \u00F8l"));
}
}
}
代码示例来源:origin: ontopia/ontopia
@Override
protected TopicMapIF exportAndReread(TopicMapIF topicmap, File outfile)
throws IOException {
// First we export
XTMTopicMapWriter writer = new XTMTopicMapWriter(outfile);
writer.setVersion(XTMVersion.XTM_1_0);
writer.write(topicmap);
// Then we read back in
TopicMapIF topicmap2 = getStoreFactory().createStore().getTopicMap();
XTMTopicMapReader reader = new XTMTopicMapReader(outfile);
reader.setValidation(false);
reader.importInto(topicmap2);
return topicmap2;
}
}
代码示例来源:origin: ontopia/ontopia
writer.setVersion(XTMVersion.XTM_1_0);
writer.write(tm);
tm.getStore().close();
代码示例来源:origin: ontopia/ontopia
writer.setVersion(XTMVersion.XTM_2_0);
代码示例来源:origin: ontopia/ontopia
writer.setVersion(XTMVersion.XTM_2_1);
代码示例来源:origin: ontopia/ontopia
xtmWriter.setVersion(XTMVersion.XTM_1_0);
代码示例来源:origin: ontopia/ontopia
@Test
public void testExportItemIdentifiers() throws IOException, SAXException {
prepareTopicMap();
TopicIF topic = builder.makeTopic();
LocatorIF iid = tmbase.resolveAbsolute("#id4314");
topic.addItemIdentifier(iid);
// export to file (not using export() because we need to control settings)
XTMTopicMapWriter writer = new XTMTopicMapWriter(tmfile);
writer.setVersion(version);
writer.setAddIds(true);
writer.setExportSourceLocators(false);
writer.write(topicmap);
// reread file with SAX
SearchAttributeValue handler =
new SearchAttributeValue("itemIdentity", "href", iid.getAddress(),
SearchAttributeValue.FORBIDDEN, false);
parseFile(handler);
handler.check();
}
我正在尝试将 indexedDB 与 jax webGL framework 一起使用但由于某种原因 setVersion 不起作用。 这是相关的 CoffeeScript if @indexedDB
本文整理了Java中org.apache.helix.ZNRecord.setVersion()方法的一些代码示例,展示了ZNRecord.setVersion()的具体用法。这些代码示例主要来源于G
这是使用 IndexedDB 提交表单的唯一示例,但由于旧的 setVersion 函数,它只能在 chrome 上工作,我一直在尝试让它工作,但我对 Javascript 和 IndexedDB 很
我尝试使用以下代码来测试 IndexedDB 的性能。代码修改自http://www.html5rocks.com/en/tutorials/indexeddb/todo/ ,它在 chrome 中运
本文整理了Java中org.eclipse.xsd.impl.XSDSchemaImpl.setVersion()方法的一些代码示例,展示了XSDSchemaImpl.setVersion()的具体用
本文整理了Java中net.ontopia.topicmaps.xml.XTMTopicMapWriter.setVersion()方法的一些代码示例,展示了XTMTopicMapWriter.set
本文整理了Java中org.teiid.query.sql.symbol.XMLSerialize.setVersion()方法的一些代码示例,展示了XMLSerialize.setVersion()
本文整理了Java中org.wildfly.security.x500.cert.X509CertificateBuilder.setVersion()方法的一些代码示例,展示了X509Certifi
本文整理了Java中org.gradle.api.tasks.bundling.Zip.setVersion()方法的一些代码示例,展示了Zip.setVersion()的具体用法。这些代码示例主要来
已经有这样的问答 Add Index to Pre-Existing ObjectStore In IndexedDB Using Javascript 但我看不出该代码如何满足 setVersion
我是一名优秀的程序员,十分优秀!