Java Code Examples for com.sun.xml.internal.stream.buffer.XMLStreamBuffer#createNewBufferFromXMLStreamReader()

The following examples show how to use com.sun.xml.internal.stream.buffer.XMLStreamBuffer#createNewBufferFromXMLStreamReader() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StreamHeader.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a {@link StreamHeader}.
 *
 * @param reader
 *      The parser that points to the start tag of the header.
 *      By the end of this method, the parser will point at
 *      the end tag of this element.
 */
protected StreamHeader(XMLStreamReader reader) throws XMLStreamException {
    _localName = reader.getLocalName();
    _namespaceURI = reader.getNamespaceURI();
    attributes = processHeaderAttributes(reader);
    // cache the body
    _mark = XMLStreamBuffer.createNewBufferFromXMLStreamReader(reader);
}
 
Example 2
Source File: StreamHeader.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a {@link StreamHeader}.
 *
 * @param reader
 *      The parser that points to the start tag of the header.
 *      By the end of this method, the parser will point at
 *      the end tag of this element.
 */
protected StreamHeader(XMLStreamReader reader) throws XMLStreamException {
    _localName = reader.getLocalName();
    _namespaceURI = reader.getNamespaceURI();
    attributes = processHeaderAttributes(reader);
    // cache the body
    _mark = XMLStreamBuffer.createNewBufferFromXMLStreamReader(reader);
}
 
Example 3
Source File: StreamHeader.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a {@link StreamHeader}.
 *
 * @param reader
 *      The parser that points to the start tag of the header.
 *      By the end of this method, the parser will point at
 *      the end tag of this element.
 */
protected StreamHeader(XMLStreamReader reader) throws XMLStreamException {
    _localName = reader.getLocalName();
    _namespaceURI = reader.getNamespaceURI();
    attributes = processHeaderAttributes(reader);
    // cache the body
    _mark = XMLStreamBuffer.createNewBufferFromXMLStreamReader(reader);
}
 
Example 4
Source File: StreamHeader.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a {@link StreamHeader}.
 *
 * @param reader
 *      The parser that points to the start tag of the header.
 *      By the end of this method, the parser will point at
 *      the end tag of this element.
 */
protected StreamHeader(XMLStreamReader reader) throws XMLStreamException {
    _localName = reader.getLocalName();
    _namespaceURI = reader.getNamespaceURI();
    attributes = processHeaderAttributes(reader);
    // cache the body
    _mark = XMLStreamBuffer.createNewBufferFromXMLStreamReader(reader);
}
 
Example 5
Source File: StreamHeader.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a {@link StreamHeader}.
 *
 * @param reader
 *      The parser that points to the start tag of the header.
 *      By the end of this method, the parser will point at
 *      the end tag of this element.
 */
protected StreamHeader(XMLStreamReader reader) throws XMLStreamException {
    _localName = reader.getLocalName();
    _namespaceURI = reader.getNamespaceURI();
    attributes = processHeaderAttributes(reader);
    // cache the body
    _mark = XMLStreamBuffer.createNewBufferFromXMLStreamReader(reader);
}
 
Example 6
Source File: StreamHeader.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a {@link StreamHeader}.
 *
 * @param reader
 *      The parser that points to the start tag of the header.
 *      By the end of this method, the parser will point at
 *      the end tag of this element.
 */
protected StreamHeader(XMLStreamReader reader) throws XMLStreamException {
    _localName = reader.getLocalName();
    _namespaceURI = reader.getNamespaceURI();
    attributes = processHeaderAttributes(reader);
    // cache the body
    _mark = XMLStreamBuffer.createNewBufferFromXMLStreamReader(reader);
}
 
Example 7
Source File: StreamHeader.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a {@link StreamHeader}.
 *
 * @param reader
 *      The parser that points to the start tag of the header.
 *      By the end of this method, the parser will point at
 *      the end tag of this element.
 */
protected StreamHeader(XMLStreamReader reader) throws XMLStreamException {
    _localName = reader.getLocalName();
    _namespaceURI = reader.getNamespaceURI();
    attributes = processHeaderAttributes(reader);
    // cache the body
    _mark = XMLStreamBuffer.createNewBufferFromXMLStreamReader(reader);
}
 
Example 8
Source File: StreamHeader.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a {@link StreamHeader}.
 *
 * @param reader
 *      The parser that points to the start tag of the header.
 *      By the end of this method, the parser will point at
 *      the end tag of this element.
 */
protected StreamHeader(XMLStreamReader reader) throws XMLStreamException {
    _localName = reader.getLocalName();
    _namespaceURI = reader.getNamespaceURI();
    attributes = processHeaderAttributes(reader);
    // cache the body
    _mark = XMLStreamBuffer.createNewBufferFromXMLStreamReader(reader);
}
 
Example 9
Source File: WSEndpointReference.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates a {@link WSEndpointReference} from the given infoset.
 * The {@link XMLStreamReader} must point to either a document or an element.
 */
public WSEndpointReference(XMLStreamReader in, AddressingVersion version) throws XMLStreamException {
    this(XMLStreamBuffer.createNewBufferFromXMLStreamReader(in), version);
}
 
Example 10
Source File: WSEndpointReference.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates a {@link WSEndpointReference} from the given infoset.
 * The {@link XMLStreamReader} must point to either a document or an element.
 */
public WSEndpointReference(XMLStreamReader in, AddressingVersion version) throws XMLStreamException {
    this(XMLStreamBuffer.createNewBufferFromXMLStreamReader(in), version);
}
 
Example 11
Source File: WSEndpointReference.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates a {@link WSEndpointReference} from the given infoset.
 * The {@link XMLStreamReader} must point to either a document or an element.
 */
public WSEndpointReference(XMLStreamReader in, AddressingVersion version) throws XMLStreamException {
    this(XMLStreamBuffer.createNewBufferFromXMLStreamReader(in), version);
}
 
Example 12
Source File: WSEndpointReference.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates a {@link WSEndpointReference} from the given infoset.
 * The {@link XMLStreamReader} must point to either a document or an element.
 */
public WSEndpointReference(XMLStreamReader in, AddressingVersion version) throws XMLStreamException {
    this(XMLStreamBuffer.createNewBufferFromXMLStreamReader(in), version);
}
 
Example 13
Source File: WSEndpointReference.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates a {@link WSEndpointReference} from the given infoset.
 * The {@link XMLStreamReader} must point to either a document or an element.
 */
public WSEndpointReference(XMLStreamReader in, AddressingVersion version) throws XMLStreamException {
    this(XMLStreamBuffer.createNewBufferFromXMLStreamReader(in), version);
}
 
Example 14
Source File: WSEndpointReference.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates a {@link WSEndpointReference} from the given infoset.
 * The {@link XMLStreamReader} must point to either a document or an element.
 */
public WSEndpointReference(XMLStreamReader in, AddressingVersion version) throws XMLStreamException {
    this(XMLStreamBuffer.createNewBufferFromXMLStreamReader(in), version);
}
 
Example 15
Source File: WSEndpointReference.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates a {@link WSEndpointReference} from the given infoset.
 * The {@link XMLStreamReader} must point to either a document or an element.
 */
public WSEndpointReference(XMLStreamReader in, AddressingVersion version) throws XMLStreamException {
    this(XMLStreamBuffer.createNewBufferFromXMLStreamReader(in), version);
}
 
Example 16
Source File: WSEndpointReference.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates a {@link WSEndpointReference} from the given infoset.
 * The {@link XMLStreamReader} must point to either a document or an element.
 */
public WSEndpointReference(XMLStreamReader in, AddressingVersion version) throws XMLStreamException {
    this(XMLStreamBuffer.createNewBufferFromXMLStreamReader(in), version);
}