gpt4 book ai didi

com.sun.xml.ws.streaming.XMLStreamReaderUtil.close()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 17:48:40 34 4
gpt4 key购买 nike

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

XMLStreamReaderUtil.close介绍

暂无

代码示例

代码示例来源:origin: com.sun.xml.ws/rt

static String documentRootNamespace(Source src, boolean disableXmlSecurity) throws XMLStreamException {
    XMLInputFactory factory;
    factory = XmlUtil.newXMLInputFactory(!disableXmlSecurity);
    XMLStreamReader streamReader = factory.createXMLStreamReader(src);
    XMLStreamReaderUtil.nextElementContent(streamReader);
    String namespaceURI = streamReader.getName().getNamespaceURI();
    XMLStreamReaderUtil.close(streamReader);
    return namespaceURI;
  }
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

static String documentRootNamespace(Source src, boolean disableXmlSecurity) throws XMLStreamException {
    XMLInputFactory factory;
    factory = XmlUtil.newXMLInputFactory(!disableXmlSecurity);
    XMLStreamReader streamReader = factory.createXMLStreamReader(src);
    XMLStreamReaderUtil.nextElementContent(streamReader);
    String namespaceURI = streamReader.getName().getNamespaceURI();
    XMLStreamReaderUtil.close(streamReader);
    return namespaceURI;
  }
}

代码示例来源:origin: javaee/metro-jax-ws

static String documentRootNamespace(Source src, boolean disableXmlSecurity) throws XMLStreamException {
    XMLInputFactory factory;
    factory = XmlUtil.newXMLInputFactory(!disableXmlSecurity);
    XMLStreamReader streamReader = factory.createXMLStreamReader(src);
    XMLStreamReaderUtil.nextElementContent(streamReader);
    String namespaceURI = streamReader.getName().getNamespaceURI();
    XMLStreamReaderUtil.close(streamReader);
    return namespaceURI;
  }
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

@Override
public void consume() {
  assert unconsumed();
  XMLStreamReaderUtil.readRest(reader);
  XMLStreamReaderUtil.close(reader);
  XMLStreamReaderFactory.recycle(reader);
}

代码示例来源:origin: javaee/metro-jax-ws

@Override
public void consume() {
  assert unconsumed();
  XMLStreamReaderUtil.readRest(reader);
  XMLStreamReaderUtil.close(reader);
  XMLStreamReaderFactory.recycle(reader);
}

代码示例来源:origin: com.sun.xml.ws/rt

@Override
public void consume() {
  assert unconsumed();
  XMLStreamReaderUtil.readRest(reader);
  XMLStreamReaderUtil.close(reader);
  XMLStreamReaderFactory.recycle(reader);
}

代码示例来源:origin: com.hynnet/xws-security

public Object run() throws Exception {
    if (hasAttachments()) {
      unmarshaller.setAttachmentUnmarshaller(new AttachmentUnmarshallerImpl(getAttachments()));
    }
    try {
      return unmarshaller.unmarshal(reader);
    } finally {
      unmarshaller.setAttachmentUnmarshaller(null);
      XMLStreamReaderUtil.close(reader);
      XMLStreamReaderFactory.recycle(reader);
    }
  }
});

代码示例来源:origin: com.sun.xml.ws/rt

XMLStreamReaderUtil.close(reader);
XMLStreamReaderFactory.recycle(reader);

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

XMLStreamReaderUtil.close(reader);
XMLStreamReaderFactory.recycle(reader);

代码示例来源:origin: javaee/metro-jax-ws

XMLStreamReaderUtil.close(reader);
XMLStreamReaderFactory.recycle(reader);

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

public Object readPayloadAsJAXB(Unmarshaller unmarshaller) throws JAXBException {
  if(!hasPayload())
    return null;
  assert unconsumed();
  // TODO: How can the unmarshaller process this as a fragment?
  if(hasAttachments())
    unmarshaller.setAttachmentUnmarshaller(new AttachmentUnmarshallerImpl(getAttachments()));
  try {
    return unmarshaller.unmarshal(reader);
  } finally{
    unmarshaller.setAttachmentUnmarshaller(null);
    XMLStreamReaderUtil.readRest(reader);
    XMLStreamReaderUtil.close(reader);
    XMLStreamReaderFactory.recycle(reader);
  }
}
/** @deprecated */

代码示例来源:origin: com.sun.xml.ws/rt

/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
  if(!hasPayload())
    return null;
  assert unconsumed();
  T r = bridge.unmarshal(reader,
    hasAttachments() ? new AttachmentUnmarshallerImpl(getAttachments()) : null);
  XMLStreamReaderUtil.readRest(reader);
  XMLStreamReaderUtil.close(reader);
  XMLStreamReaderFactory.recycle(reader);
  return r;
}

代码示例来源:origin: javaee/metro-jax-ws

public Object readPayloadAsJAXB(Unmarshaller unmarshaller) throws JAXBException {
  if(!hasPayload())
    return null;
  assert unconsumed();
  // TODO: How can the unmarshaller process this as a fragment?
  if(hasAttachments())
    unmarshaller.setAttachmentUnmarshaller(new AttachmentUnmarshallerImpl(getAttachments()));
  try {
    return unmarshaller.unmarshal(reader);
  } finally{
    unmarshaller.setAttachmentUnmarshaller(null);
    XMLStreamReaderUtil.readRest(reader);
    XMLStreamReaderUtil.close(reader);
    XMLStreamReaderFactory.recycle(reader);
  }
}
/** @deprecated */

代码示例来源:origin: javaee/metro-jax-ws

public <T> T readPayloadAsJAXB(XMLBridge<T> bridge) throws JAXBException {
  if(!hasPayload())
    return null;
  assert unconsumed();
  T r = bridge.unmarshal(reader,
    hasAttachments() ? new AttachmentUnmarshallerImpl(getAttachments()) : null);
  XMLStreamReaderUtil.readRest(reader);
  XMLStreamReaderUtil.close(reader);
  XMLStreamReaderFactory.recycle(reader);
  return r;
}

代码示例来源:origin: com.sun.xml.ws/rt

public Object readPayloadAsJAXB(Unmarshaller unmarshaller) throws JAXBException {
  if(!hasPayload())
    return null;
  assert unconsumed();
  // TODO: How can the unmarshaller process this as a fragment?
  if(hasAttachments())
    unmarshaller.setAttachmentUnmarshaller(new AttachmentUnmarshallerImpl(getAttachments()));
  try {
    return unmarshaller.unmarshal(reader);
  } finally{
    unmarshaller.setAttachmentUnmarshaller(null);
    XMLStreamReaderUtil.readRest(reader);
    XMLStreamReaderUtil.close(reader);
    XMLStreamReaderFactory.recycle(reader);
  }
}
/** @deprecated */

代码示例来源:origin: javaee/metro-jax-ws

/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
  if(!hasPayload())
    return null;
  assert unconsumed();
  T r = bridge.unmarshal(reader,
    hasAttachments() ? new AttachmentUnmarshallerImpl(getAttachments()) : null);
  XMLStreamReaderUtil.readRest(reader);
  XMLStreamReaderUtil.close(reader);
  XMLStreamReaderFactory.recycle(reader);
  return r;
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
  if(!hasPayload())
    return null;
  assert unconsumed();
  T r = bridge.unmarshal(reader,
    hasAttachments() ? new AttachmentUnmarshallerImpl(getAttachments()) : null);
  XMLStreamReaderUtil.readRest(reader);
  XMLStreamReaderUtil.close(reader);
  XMLStreamReaderFactory.recycle(reader);
  return r;
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

public <T> T readPayloadAsJAXB(XMLBridge<T> bridge) throws JAXBException {
  if(!hasPayload())
    return null;
  assert unconsumed();
  T r = bridge.unmarshal(reader,
    hasAttachments() ? new AttachmentUnmarshallerImpl(getAttachments()) : null);
  XMLStreamReaderUtil.readRest(reader);
  XMLStreamReaderUtil.close(reader);
  XMLStreamReaderFactory.recycle(reader);
  return r;
}

代码示例来源:origin: com.sun.xml.ws/rt

public <T> T readPayloadAsJAXB(XMLBridge<T> bridge) throws JAXBException {
  if(!hasPayload())
    return null;
  assert unconsumed();
  T r = bridge.unmarshal(reader,
    hasAttachments() ? new AttachmentUnmarshallerImpl(getAttachments()) : null);
  XMLStreamReaderUtil.readRest(reader);
  XMLStreamReaderUtil.close(reader);
  XMLStreamReaderFactory.recycle(reader);
  return r;
}

代码示例来源:origin: com.hynnet/xws-security

public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
  cacheMessage();
  if (!hasPayload()) {
    return null;
  }
  assert unconsumed();
  T r = bridge.unmarshal(reader,
      hasAttachments() ? new AttachmentUnmarshallerImpl(getAttachments()) : null);
  XMLStreamReaderUtil.close(reader);
  XMLStreamReaderFactory.recycle(reader);
  return r;
}

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