本文整理汇总了Java中com.sun.xml.internal.stream.buffer.stax.StreamReaderBufferProcessor类的典型用法代码示例。如果您正苦于以下问题:Java StreamReaderBufferProcessor类的具体用法?Java StreamReaderBufferProcessor怎么用?Java StreamReaderBufferProcessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StreamReaderBufferProcessor类属于com.sun.xml.internal.stream.buffer.stax包,在下文中一共展示了StreamReaderBufferProcessor类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getElementTextAsQName
import com.sun.xml.internal.stream.buffer.stax.StreamReaderBufferProcessor; //导入依赖的package包/类
private QName getElementTextAsQName(StreamReaderBufferProcessor xsr) throws XMLStreamException {
String text = xsr.getElementText().trim();
String prefix = XmlUtil.getPrefix(text);
String name = XmlUtil.getLocalPart(text);
if (name != null) {
if (prefix != null) {
String ns = xsr.getNamespaceURI(prefix);
if (ns != null) {
return new QName(ns, name, prefix);
}
} else {
return new QName(null, name);
}
}
return null;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:WSEndpointReference.java
示例2: read
import com.sun.xml.internal.stream.buffer.stax.StreamReaderBufferProcessor; //导入依赖的package包/类
/**
* Reads this EPR as {@link XMLStreamReader}.
*
* @param localName
* EPR uses a different root tag name depending on the context.
* The returned {@link XMLStreamReader} will use the given local name
* for the root element name.
*/
public XMLStreamReader read(final @NotNull String localName) throws XMLStreamException {
return new StreamReaderBufferProcessor(infoset) {
@Override
protected void processElement(String prefix, String uri, String _localName, boolean inScope) {
if (_depth == 0) {
_localName = localName;
}
super.processElement(prefix, uri, _localName, isInscope(infoset,_depth));
}
};
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:WSEndpointReference.java
示例3: read
import com.sun.xml.internal.stream.buffer.stax.StreamReaderBufferProcessor; //导入依赖的package包/类
/**
* Reads this EPR as {@link XMLStreamReader}.
*
* @param localName
* EPR uses a different root tag name depending on the context.
* The returned {@link XMLStreamReader} will use the given local name
* for the root element name.
*/
public XMLStreamReader read(final @NotNull String localName) throws XMLStreamException {
return new StreamReaderBufferProcessor(infoset) {
protected void processElement(String prefix, String uri, String _localName) {
if (_depth == 0)
_localName = localName;
super.processElement(prefix, uri, _localName);
}
};
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:18,代码来源:WSEndpointReference.java
示例4: getElementTextAsQName
import com.sun.xml.internal.stream.buffer.stax.StreamReaderBufferProcessor; //导入依赖的package包/类
private QName getElementTextAsQName(StreamReaderBufferProcessor xsr) throws XMLStreamException {
String text = xsr.getElementText().trim();
String prefix = XmlUtil.getPrefix(text);
String name = XmlUtil.getLocalPart(text);
if (name != null) {
if (prefix != null) {
String ns = xsr.getNamespaceURI(prefix);
if (ns != null)
return new QName(ns, name, prefix);
} else {
return new QName(null, name);
}
}
return null;
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:16,代码来源:WSEndpointReference.java
示例5: readAsXMLStreamReader
import com.sun.xml.internal.stream.buffer.stax.StreamReaderBufferProcessor; //导入依赖的package包/类
/**
* Read the contents of the buffer as a {@link XMLStreamReader}.
*
* @return
* A an instance of a {@link StreamReaderBufferProcessor}. Always non-null.
*/
public final StreamReaderBufferProcessor readAsXMLStreamReader() throws XMLStreamException {
return new StreamReaderBufferProcessor(this);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:XMLStreamBuffer.java
注:本文中的com.sun.xml.internal.stream.buffer.stax.StreamReaderBufferProcessor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论