- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.thoughtworks.xstream.XStreamer.fromXML()
方法的一些代码示例,展示了XStreamer.fromXML()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XStreamer.fromXML()
方法的具体详情如下:
包路径:com.thoughtworks.xstream.XStreamer
类名称:XStreamer
方法名:fromXML
[英]Deserialize a self-contained XStream with object from an XML Reader.
[中]使用XML读取器中的对象反序列化自包含的XStream。
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Deserialize a self-contained XStream with object from an XML Reader.
*
* @param driver the implementation to use
* @param xml the {@link Reader} providing the XML data
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
*/
public Object fromXML(final HierarchicalStreamDriver driver, final Reader xml)
throws IOException, ClassNotFoundException {
return fromXML(driver, xml, PERMISSIONS);
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Deserialize a self-contained XStream with object from an XML Reader. The method will use
* internally an XppDriver to load the contained XStream instance with default permissions.
*
* @param xml the {@link Reader} providing the XML data
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(final Reader xml)
throws IOException, ClassNotFoundException {
return fromXML(new XppDriver(), xml);
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Deserialize a self-contained XStream with object from an XML Reader. The method will use
* internally an XppDriver to load the contained XStream instance.
*
* @param xml the {@link Reader} providing the XML data
* @param permissions the permissions to use (ensure that they include the defaults)
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.4.7
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(final Reader xml, final TypePermission[] permissions)
throws IOException, ClassNotFoundException {
return fromXML(new XppDriver(), xml, permissions);
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Deserialize a self-contained XStream with object from a String. The method will use
* internally an XppDriver to load the contained XStream instance with default permissions.
*
* @param xml the XML data
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws ObjectStreamException if the XML contains non-deserializable elements
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(final String xml) throws ClassNotFoundException, ObjectStreamException {
try {
return fromXML(new StringReader(xml));
} catch (final ObjectStreamException e) {
throw e;
} catch (final IOException e) {
throw new StreamException("Unexpected IO error from a StringReader", e);
}
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Deserialize a self-contained XStream with object from a String. The method will use
* internally an XppDriver to load the contained XStream instance.
*
* @param xml the XML data
* @param permissions the permissions to use (ensure that they include the defaults)
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws ObjectStreamException if the XML contains non-deserializable elements
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.4.7
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(final String xml, final TypePermission[] permissions) throws ClassNotFoundException, ObjectStreamException {
try {
return fromXML(new StringReader(xml), permissions);
} catch (final ObjectStreamException e) {
throw e;
} catch (final IOException e) {
throw new StreamException("Unexpected IO error from a StringReader", e);
}
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Deserialize a self-contained XStream with object from a String.
*
* @param driver the implementation to use
* @param xml the XML data
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws ObjectStreamException if the XML contains non-deserializable elements
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(final HierarchicalStreamDriver driver, final String xml)
throws ClassNotFoundException, ObjectStreamException {
try {
return fromXML(driver, new StringReader(xml));
} catch (final ObjectStreamException e) {
throw e;
} catch (final IOException e) {
throw new StreamException("Unexpected IO error from a StringReader", e);
}
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Deserialize a self-contained XStream with object from a String.
*
* @param driver the implementation to use
* @param xml the XML data
* @param permissions the permissions to use (ensure that they include the defaults)
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws ObjectStreamException if the XML contains non-deserializable elements
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.4.7
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(final HierarchicalStreamDriver driver, final String xml, final TypePermission[] permissions)
throws ClassNotFoundException, ObjectStreamException {
try {
return fromXML(driver, new StringReader(xml), permissions);
} catch (final ObjectStreamException e) {
throw e;
} catch (final IOException e) {
throw new StreamException("Unexpected IO error from a StringReader", e);
}
}
代码示例来源:origin: x-stream/xstream
/**
* Deserialize a self-contained XStream with object from an XML Reader.
*
* @param driver the implementation to use
* @param xml the {@link Reader} providing the XML data
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
*/
public <T> T fromXML(final HierarchicalStreamDriver driver, final Reader xml)
throws IOException, ClassNotFoundException {
return fromXML(driver, xml, PERMISSIONS);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8
/**
* Deserialize a self-contained XStream with object from an XML Reader.
*
* @param driver the implementation to use
* @param xml the {@link Reader} providing the XML data
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
*/
public Object fromXML(final HierarchicalStreamDriver driver, final Reader xml)
throws IOException, ClassNotFoundException {
return fromXML(driver, xml, PERMISSIONS);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream
/**
* Deserialize a self-contained XStream with object from an XML Reader.
*
* @param driver the implementation to use
* @param xml the {@link Reader} providing the XML data
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
*/
public Object fromXML(final HierarchicalStreamDriver driver, final Reader xml)
throws IOException, ClassNotFoundException {
return fromXML(driver, xml, PERMISSIONS);
}
代码示例来源:origin: apache/servicemix-bundles
/**
* Deserialize a self-contained XStream with object from an XML Reader.
*
* @param driver the implementation to use
* @param xml the {@link Reader} providing the XML data
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
*/
public Object fromXML(final HierarchicalStreamDriver driver, final Reader xml)
throws IOException, ClassNotFoundException {
return fromXML(driver, xml, PERMISSIONS);
}
代码示例来源:origin: x-stream/xstream
/**
* Deserialize a self-contained XStream with object from an XML Reader. The method will use internally an XppDriver
* to load the contained XStream instance with default permissions.
*
* @param xml the {@link Reader} providing the XML data
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
* @see #toXML(XStream, Object, Writer)
*/
public <T> T fromXML(final Reader xml) throws IOException, ClassNotFoundException {
return fromXML(new XppDriver(), xml);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream
/**
* Deserialize a self-contained XStream with object from an XML Reader. The method will use
* internally an XppDriver to load the contained XStream instance with default permissions.
*
* @param xml the {@link Reader} providing the XML data
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(final Reader xml)
throws IOException, ClassNotFoundException {
return fromXML(new XppDriver(), xml);
}
代码示例来源:origin: org.jvnet.hudson/xstream
/**
* Deserialize a self-contained XStream with object from an XML Reader. The method will use
* internally an XppDriver to load the contained XStream instance.
*
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(Reader xml)
throws IOException, ClassNotFoundException {
return fromXML(new XppDriver(), xml);
}
代码示例来源:origin: com.haulmont.thirdparty/xstream
/**
* Deserialize a self-contained XStream with object from an XML Reader. The method will use
* internally an XppDriver to load the contained XStream instance.
*
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(Reader xml)
throws IOException, ClassNotFoundException {
return fromXML(new XppDriver(), xml);
}
代码示例来源:origin: org.sonatype.nexus.xstream/xstream
/**
* Deserialize a self-contained XStream with object from an XML Reader. The method will use
* internally an XppDriver to load the contained XStream instance.
*
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(Reader xml)
throws IOException, ClassNotFoundException {
return fromXML(new XppDriver(), xml);
}
代码示例来源:origin: ovea-deprecated/jetty-session-redis
/**
* Deserialize a self-contained XStream with object from an XML Reader. The method will use
* internally an XppDriver to load the contained XStream instance.
*
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(Reader xml)
throws IOException, ClassNotFoundException {
return fromXML(new XppDriver(), xml);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8
/**
* Deserialize a self-contained XStream with object from an XML Reader. The method will use
* internally an XppDriver to load the contained XStream instance with default permissions.
*
* @param xml the {@link Reader} providing the XML data
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.2
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(final Reader xml)
throws IOException, ClassNotFoundException {
return fromXML(new XppDriver(), xml);
}
代码示例来源:origin: x-stream/xstream
/**
* Deserialize a self-contained XStream with object from an XML Reader. The method will use internally an XppDriver
* to load the contained XStream instance.
*
* @param xml the {@link Reader} providing the XML data
* @param permissions the permissions to use (ensure that they include the defaults)
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.4.7
* @see #toXML(XStream, Object, Writer)
*/
public <T> T fromXML(final Reader xml, final TypePermission... permissions)
throws IOException, ClassNotFoundException {
return fromXML(new XppDriver(), xml, permissions);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream
/**
* Deserialize a self-contained XStream with object from an XML Reader. The method will use
* internally an XppDriver to load the contained XStream instance.
*
* @param xml the {@link Reader} providing the XML data
* @param permissions the permissions to use (ensure that they include the defaults)
* @throws IOException if an error occurs reading from the Reader.
* @throws ClassNotFoundException if a class in the XML stream cannot be found
* @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
* @since 1.4.7
* @see #toXML(XStream, Object, Writer)
*/
public Object fromXML(final Reader xml, final TypePermission[] permissions)
throws IOException, ClassNotFoundException {
return fromXML(new XppDriver(), xml, permissions);
}
我正在使用 thoughworks go 构建管道,如下所示: “测试”阶段从构建阶段获取工件,并在不同时期并行运行它的每个作业(单元测试、集成测试、验收测试、包)。但是,这些作业中的每一个都是一个
本文整理了Java中com.thoughtworks.xstream.XStreamer类的一些代码示例,展示了XStreamer类的具体用法。这些代码示例主要来源于Github/Stackoverf
我们正在研究使用 Thoughtworks Go 来帮助改进我们在工作中的构建/部署/发布流程的可能性,但由于价格因素和您实际得到的东西,我们决定反对它。 我想知道,有没有 Thinkworks Go
本文整理了Java中com.thoughtworks.xstream.mapper.XmlFriendlyMapper类的一些代码示例,展示了XmlFriendlyMapper类的具体用法。这些代码示
本文整理了Java中com.thoughtworks.xstream.annotations.XStreamImplicitCollection类的一些代码示例,展示了XStreamImplicitC
本文整理了Java中com.thoughtworks.xstream.persistence.XmlMap类的一些代码示例,展示了XmlMap类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中com.thoughtworks.xstream.persistence.XmlArrayList类的一些代码示例,展示了XmlArrayList类的具体用法。这些代码示例主要来源
本文整理了Java中com.thoughtworks.xstream.annotations.XStreamConverters类的一些代码示例,展示了XStreamConverters类的具体用法。
本文整理了Java中com.thoughtworks.xstream.mapper.XStream11XmlFriendlyMapper类的一些代码示例,展示了XStream11XmlFriendly
本文整理了Java中com.thoughtworks.xstream.persistence.XmlSet类的一些代码示例,展示了XmlSet类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中com.thoughtworks.go.util.ZipUtil类的一些代码示例,展示了ZipUtil类的具体用法。这些代码示例主要来源于Github/Stackoverflow/
本文整理了Java中com.thoughtworks.go.util.ZipBuilder类的一些代码示例,展示了ZipBuilder类的具体用法。这些代码示例主要来源于Github/Stackove
试图从 go 模板中引用环境变量,但我认为这是不可能的?在文档和示例中看不到任何内容,我通过大量使用参数但从来没有看到环境变量。我想要的是类似的东西
Thoughtworks Go 提供了一组传递给每个任务的作业特定环境变量。例如,我的工作输出与 API doc 相同的值指定。 [go] setting environment variable '
我正在评估 Cruise(注意!不是 CruiseControl,而是 Cruise(商业版))用于使用非托管 MSVC++ 2008 项目执行 CI。我使用 GoogleTest 框架进行单元测试。
本文整理了Java中com.thoughtworks.xstream.io.xml.XppDomReader类的一些代码示例,展示了XppDomReader类的具体用法。这些代码示例主要来源于Gith
本文整理了Java中com.thoughtworks.xstream.core.util.XmlHeaderAwareReader类的一些代码示例,展示了XmlHeaderAwareReader类的具
本文整理了Java中com.thoughtworks.xstream.io.xml.XomWriter类的一些代码示例,展示了XomWriter类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中com.thoughtworks.xstream.XStreamer.fromXML()方法的一些代码示例,展示了XStreamer.fromXML()的具体用法。这些代码示例主要
本文整理了Java中com.thoughtworks.xstream.XStreamer.toXML()方法的一些代码示例,展示了XStreamer.toXML()的具体用法。这些代码示例主要来源于G
我是一名优秀的程序员,十分优秀!