本文整理了Java中org.apache.xmlrpc.serializer.XmlRpcWriter.<init>()
方法的一些代码示例,展示了XmlRpcWriter.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlRpcWriter.<init>()
方法的具体详情如下:
包路径:org.apache.xmlrpc.serializer.XmlRpcWriter
类名称:XmlRpcWriter
方法名:<init>
[英]Creates a new instance.
[中]创建一个新实例。
代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-server
protected XmlRpcWriter getXmlRpcWriter(XmlRpcStreamRequestConfig pConfig,
OutputStream pStream)
throws XmlRpcException {
ContentHandler w = getXMLWriterFactory().getXmlWriter(pConfig, pStream);
return new XmlRpcWriter(pConfig, w, getTypeFactory());
}
代码示例来源:origin: org.apache.xmlrpc/xmlrpc-server
protected XmlRpcWriter getXmlRpcWriter(XmlRpcStreamRequestConfig pConfig,
OutputStream pStream)
throws XmlRpcException {
ContentHandler w = getXMLWriterFactory().getXmlWriter(pConfig, pStream);
return new XmlRpcWriter(pConfig, w, getTypeFactory());
}
代码示例来源:origin: rosjava/rosjava_core
protected XmlRpcWriter getXmlRpcWriter(XmlRpcStreamRequestConfig pConfig,
OutputStream pStream)
throws XmlRpcException {
ContentHandler w = getXMLWriterFactory().getXmlWriter(pConfig, pStream);
return new XmlRpcWriter(pConfig, w, getTypeFactory());
}
代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-client
/** Writes the requests uncompressed XML data to the given
* output stream. Ensures, that the output stream is being
* closed.
*/
public void write(OutputStream pStream)
throws XmlRpcException, IOException, SAXException {
final XmlRpcStreamConfig config = (XmlRpcStreamConfig) request.getConfig();
try {
ContentHandler h = getClient().getXmlWriterFactory().getXmlWriter(config, pStream);
XmlRpcWriter xw = new XmlRpcWriter(config, h, getClient().getTypeFactory());
xw.write(request);
pStream.close();
pStream = null;
} finally {
if (pStream != null) { try { pStream.close(); } catch (Throwable ignore) {} }
}
}
}
代码示例来源:origin: rosjava/rosjava_core
/** Writes the requests uncompressed XML data to the given
* output stream. Ensures, that the output stream is being
* closed.
*/
public void write(OutputStream pStream)
throws XmlRpcException, IOException, SAXException {
final XmlRpcStreamConfig config = (XmlRpcStreamConfig) request.getConfig();
try {
ContentHandler h = getClient().getXmlWriterFactory().getXmlWriter(config, pStream);
XmlRpcWriter xw = new XmlRpcWriter(config, h, getClient().getTypeFactory());
xw.write(request);
pStream.close();
pStream = null;
} finally {
if (pStream != null) { try { pStream.close(); } catch (Throwable ignore) {} }
}
}
}
代码示例来源:origin: org.apache.xmlrpc/xmlrpc-client
/** Writes the requests uncompressed XML data to the given
* output stream. Ensures, that the output stream is being
* closed.
*/
public void write(OutputStream pStream)
throws XmlRpcException, IOException, SAXException {
final XmlRpcStreamConfig config = (XmlRpcStreamConfig) request.getConfig();
try {
ContentHandler h = getClient().getXmlWriterFactory().getXmlWriter(config, pStream);
XmlRpcWriter xw = new XmlRpcWriter(config, h, getClient().getTypeFactory());
xw.write(request);
pStream.close();
pStream = null;
} finally {
if (pStream != null) { try { pStream.close(); } catch (Throwable ignore) {} }
}
}
}
代码示例来源:origin: xmlrpc/xmlrpc-client
/** Writes the requests uncompressed XML data to the given
* output stream. Ensures, that the output stream is being
* closed.
*/
public void write(OutputStream pStream)
throws XmlRpcException, IOException, SAXException {
final XmlRpcStreamConfig config = (XmlRpcStreamConfig) request.getConfig();
try {
ContentHandler h = getClient().getXmlWriterFactory().getXmlWriter(config, pStream);
XmlRpcWriter xw = new XmlRpcWriter(config, h, getClient().getTypeFactory());
xw.write(request);
pStream.close();
pStream = null;
} finally {
if (pStream != null) { try { pStream.close(); } catch (Throwable ignore) {} }
}
}
}
代码示例来源:origin: org.ogema.drivers/homematic-xmlrpc-ll
/** Writes the requests uncompressed XML data to the given
* output stream. Ensures, that the output stream is being
* closed.
*/
public void write(OutputStream pStream)
throws XmlRpcException, IOException, SAXException {
final XmlRpcStreamConfig config = (XmlRpcStreamConfig) request.getConfig();
try {
ContentHandler h = getClient().getXmlWriterFactory().getXmlWriter(config, pStream);
XmlRpcWriter xw = new XmlRpcWriter(config, h, getClient().getTypeFactory());
xw.write(request);
pStream.close();
pStream = null;
} finally {
if (pStream != null) { try { pStream.close(); } catch (Throwable ignore) {} }
}
}
}
内容来源于网络,如有侵权,请联系作者删除!