org.apache.xmlrpc.serializer.XmlWriterFactory类的使用及代码示例

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

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

XmlWriterFactory介绍

[英]This factory is responsible for creating instances of org.apache.ws.commons.serialize.XMLWriter.
[中]该工厂负责创建组织的实例。阿帕奇。ws。平民连载。XMLWriter。

代码示例

代码示例来源:origin: org.apache.xmlrpc/xmlrpc-common

public ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig,
                    OutputStream pStream) throws XmlRpcException {
    return factory.getXmlWriter(pConfig, pStream);
  }
}

代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-common

public ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig,
                    OutputStream pStream) throws XmlRpcException {
    return factory.getXmlWriter(pConfig, pStream);
  }
}

代码示例来源:origin: rosjava/rosjava_core

public ContentHandler getXmlWriter(XmlRpcStreamConfig pConfig,
                    OutputStream pStream) throws XmlRpcException {
    return factory.getXmlWriter(pConfig, pStream);
  }
}

代码示例来源: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: 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.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: 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: 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: 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) {} }
    }
  }
}

代码示例来源: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) {} }
    }
  }
}

相关文章

微信公众号

最新文章

更多

XmlWriterFactory类方法