org.apache.xmlrpc.serializer.XmlRpcWriter.<init>()方法的使用及代码示例

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

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

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) {} }
    }
  }
}

相关文章

微信公众号

最新文章

更多