本文整理汇总了Java中com.sun.xml.internal.ws.message.stream.StreamHeader12类的典型用法代码示例。如果您正苦于以下问题:Java StreamHeader12类的具体用法?Java StreamHeader12怎么用?Java StreamHeader12使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StreamHeader12类属于com.sun.xml.internal.ws.message.stream包,在下文中一共展示了StreamHeader12类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create
import com.sun.xml.internal.ws.message.stream.StreamHeader12; //导入依赖的package包/类
/**
* Creates a new {@link Header} that reads from {@link XMLStreamReader}.
*
* <p>
* Note that the header implementation will read the entire data
* into memory anyway, so this might not be as efficient as you might hope.
*/
public static Header create( SOAPVersion soapVersion, XMLStreamReader reader ) throws XMLStreamException {
switch(soapVersion) {
case SOAP_11:
return new StreamHeader11(reader);
case SOAP_12:
return new StreamHeader12(reader);
default:
throw new AssertionError();
}
}
示例2: createHeader
import com.sun.xml.internal.ws.message.stream.StreamHeader12; //导入依赖的package包/类
protected final StreamHeader createHeader(XMLStreamReader reader, XMLStreamBuffer mark) {
return new StreamHeader12(reader, mark);
}
示例3: createHeader
import com.sun.xml.internal.ws.message.stream.StreamHeader12; //导入依赖的package包/类
@Override
protected final StreamHeader createHeader(XMLStreamReader reader, XMLStreamBuffer mark) {
return new StreamHeader12(reader, mark);
}