gpt4 book ai didi

org.n52.oxf.xmlbeans.parser.XMLBeansParser.parse()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 07:44:40 29 4
gpt4 key购买 nike

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

XMLBeansParser.parse介绍

暂无

代码示例

代码示例来源:origin: org.n52.sensorweb/52n-oxf-xmlbeans

/**
 * Reads the given source. The source may be only the xml-document or
 * contain an application/x-www-form-url encoded string. In this case, the
 * request must have the form <em>request=</em>
 *
 * @param xmlnode The xml source.
 * @return The parsed xbeans XmlObject
 * @throws XMLHandlingException thrown if the XML is incorrect
 */
public static XmlObject parse(final Node xmlnode) throws XMLHandlingException {
  return parse(xmlnode, true);
}

代码示例来源:origin: org.n52.sensorweb/52n-oxf-xmlbeans

/**
 * Reads the given source. The source may be only the xml-document or
 * contain an application/x-www-form-url encoded string. In this case, the
 * request must have the form <em>request=</em>
 *
 * @param source The xml source.
 * @return The parsed xbeans XmlObject
 * @throws XMLHandlingException thrown if the XML is incorrect
 */
public static XmlObject parse(final String source) throws XMLHandlingException {
  return parse(source, true);
}

代码示例来源:origin: org.n52.sensorweb/52n-oxf-xmlbeans

/**
 * @param resourceAsStream the xml source as stream
 * @return The parsed xbeans XmlObject
 * @throws XMLHandlingException thrown if the XML is incorrect
 */
public static XmlObject parse(final InputStream resourceAsStream) throws XMLHandlingException {
  return parse(resourceAsStream, true);
}

代码示例来源:origin: org.n52.sensorweb/oxf-sos-adapter

/**
 * @deprecated use instead {@link #SOSObservationStore(OperationResult)} and {@link #unmarshalFeatures()}
 */
@Deprecated
protected OXFFeatureCollection unmarshalFeatures100(OperationResult operationResult) throws OXFException {
  try {
    this.xmlObject = XMLBeansParser.parse(operationResult.getIncomingResultAsAutoCloseStream());
    return unmarshalFeatures(operationResult);
  } catch (XMLHandlingException e) {
    throw new OXFException("Could not parse OperationResult.", e);
  }
}

代码示例来源:origin: org.n52.sensorweb/oxf-adapter-api

protected OperationResultStore(OperationResult operationResult) throws OXFException {
  try {
    this.xmlObject = XMLBeansParser.parse(operationResult.getIncomingResultAsAutoCloseStream(), false);
    this.version = getVersion(operationResult);
  }
  catch (XMLHandlingException e) {
    throw new OXFException("Could not parse OperationResult.", e);
  }
}

代码示例来源:origin: org.n52.sensorweb/oxf-sos-adapter

/**
 * @deprecated Use {@link SOSSensorStore#SOSSensorStore(OperationResult)} with {@link SOSSensorStore#unmarshalFeatures(OperationResult)}
 */
public OXFFeatureCollection unmarshalFeatures(OperationResult operationResult) throws OXFException {
  try {
    this.xmlObject = XMLBeansParser.parse(operationResult.getIncomingResultAsAutoCloseStream());
    this.version = getVersion(operationResult);
  } catch (XMLHandlingException e) {
    throw new OXFException("Could not parse OperationResult", e);
  }
  return unmarshalFeatures();
}

代码示例来源:origin: org.n52.sensorweb/sensorwebclient-api

smlDoc = SensorMLDocument.Factory.newInstance();
  Member member = smlDoc.addNewSensorML().addNewMember();
  member.set(XMLBeansParser.parse(object.newInputStream()));
} else {
  smlDoc = SensorMLDocument.Factory.parse(dataDescription.newInputStream());

代码示例来源:origin: org.n52.epos/epos-transform-om

xobj = XMLBeansParser.parse(anyTypeDoc.toString(), false);

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com