com.sun.xml.internal.ws.streaming.XMLStreamReaderException Java Examples

The following examples show how to use com.sun.xml.internal.ws.streaming.XMLStreamReaderException. 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: FastInfosetUtil.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns the FI parser allocated for this thread.
 */
public static XMLStreamReader createFIStreamReader(InputStream in) {
    // Check if compatible implementation of FI was found
    if (FastInfosetReflection.fiStAXDocumentParser_new == null) {
        throw new XMLReaderException("fastinfoset.noImplementation");
    }

    try {
        // Do not use StAX pluggable layer for FI
        Object sdp = FastInfosetReflection.fiStAXDocumentParser_new.newInstance();
        FastInfosetReflection.fiStAXDocumentParser_setStringInterning.invoke(sdp, Boolean.TRUE);
        FastInfosetReflection.fiStAXDocumentParser_setInputStream.invoke(sdp, in);
        return (XMLStreamReader) sdp;
    } catch (Exception e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #2
Source File: FastInfosetUtil.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns the FI parser allocated for this thread.
 */
public static XMLStreamReader createFIStreamReader(InputStream in) {
    // Check if compatible implementation of FI was found
    if (FastInfosetReflection.fiStAXDocumentParser_new == null) {
        throw new XMLReaderException("fastinfoset.noImplementation");
    }

    try {
        // Do not use StAX pluggable layer for FI
        Object sdp = FastInfosetReflection.fiStAXDocumentParser_new.newInstance();
        FastInfosetReflection.fiStAXDocumentParser_setStringInterning.invoke(sdp, Boolean.TRUE);
        FastInfosetReflection.fiStAXDocumentParser_setInputStream.invoke(sdp, in);
        return (XMLStreamReader) sdp;
    } catch (Exception e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #3
Source File: FastInfosetUtil.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns the FI parser allocated for this thread.
 */
public static XMLStreamReader createFIStreamReader(InputStream in) {
    // Check if compatible implementation of FI was found
    if (FastInfosetReflection.fiStAXDocumentParser_new == null) {
        throw new XMLReaderException("fastinfoset.noImplementation");
    }

    try {
        // Do not use StAX pluggable layer for FI
        Object sdp = FastInfosetReflection.fiStAXDocumentParser_new.newInstance();
        FastInfosetReflection.fiStAXDocumentParser_setStringInterning.invoke(sdp, Boolean.TRUE);
        FastInfosetReflection.fiStAXDocumentParser_setInputStream.invoke(sdp, in);
        return (XMLStreamReader) sdp;
    } catch (Exception e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #4
Source File: FastInfosetUtil.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns the FI parser allocated for this thread.
 */
public static XMLStreamReader createFIStreamReader(InputStream in) {
    // Check if compatible implementation of FI was found
    if (FastInfosetReflection.fiStAXDocumentParser_new == null) {
        throw new XMLReaderException("fastinfoset.noImplementation");
    }

    try {
        // Do not use StAX pluggable layer for FI
        Object sdp = FastInfosetReflection.fiStAXDocumentParser_new.newInstance();
        FastInfosetReflection.fiStAXDocumentParser_setStringInterning.invoke(sdp, Boolean.TRUE);
        FastInfosetReflection.fiStAXDocumentParser_setInputStream.invoke(sdp, in);
        return (XMLStreamReader) sdp;
    } catch (Exception e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #5
Source File: FastInfosetUtil.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns the FI parser allocated for this thread.
 */
public static XMLStreamReader createFIStreamReader(InputStream in) {
    // Check if compatible implementation of FI was found
    if (FastInfosetReflection.fiStAXDocumentParser_new == null) {
        throw new XMLReaderException("fastinfoset.noImplementation");
    }

    try {
        // Do not use StAX pluggable layer for FI
        Object sdp = FastInfosetReflection.fiStAXDocumentParser_new.newInstance();
        FastInfosetReflection.fiStAXDocumentParser_setStringInterning.invoke(sdp, Boolean.TRUE);
        FastInfosetReflection.fiStAXDocumentParser_setInputStream.invoke(sdp, in);
        return (XMLStreamReader) sdp;
    } catch (Exception e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #6
Source File: FastInfosetUtil.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns the FI parser allocated for this thread.
 */
public static XMLStreamReader createFIStreamReader(InputStream in) {
    // Check if compatible implementation of FI was found
    if (FastInfosetReflection.fiStAXDocumentParser_new == null) {
        throw new XMLReaderException("fastinfoset.noImplementation");
    }

    try {
        // Do not use StAX pluggable layer for FI
        Object sdp = FastInfosetReflection.fiStAXDocumentParser_new.newInstance();
        FastInfosetReflection.fiStAXDocumentParser_setStringInterning.invoke(sdp, Boolean.TRUE);
        FastInfosetReflection.fiStAXDocumentParser_setInputStream.invoke(sdp, in);
        return (XMLStreamReader) sdp;
    } catch (Exception e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #7
Source File: FastInfosetUtil.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns the FI parser allocated for this thread.
 */
public static XMLStreamReader createFIStreamReader(InputStream in) {
    // Check if compatible implementation of FI was found
    if (FastInfosetReflection.fiStAXDocumentParser_new == null) {
        throw new XMLReaderException("fastinfoset.noImplementation");
    }

    try {
        // Do not use StAX pluggable layer for FI
        Object sdp = FastInfosetReflection.fiStAXDocumentParser_new.newInstance();
        FastInfosetReflection.fiStAXDocumentParser_setStringInterning.invoke(sdp, Boolean.TRUE);
        FastInfosetReflection.fiStAXDocumentParser_setInputStream.invoke(sdp, in);
        return (XMLStreamReader) sdp;
    } catch (Exception e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #8
Source File: FastInfosetUtil.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns the FI parser allocated for this thread.
 */
public static XMLStreamReader createFIStreamReader(InputStream in) {
    // Check if compatible implementation of FI was found
    if (FastInfosetReflection.fiStAXDocumentParser_new == null) {
        throw new XMLReaderException("fastinfoset.noImplementation");
    }

    try {
        // Do not use StAX pluggable layer for FI
        Object sdp = FastInfosetReflection.fiStAXDocumentParser_new.newInstance();
        FastInfosetReflection.fiStAXDocumentParser_setStringInterning.invoke(sdp, Boolean.TRUE);
        FastInfosetReflection.fiStAXDocumentParser_setInputStream.invoke(sdp, in);
        return (XMLStreamReader) sdp;
    } catch (Exception e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #9
Source File: Messages.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Message} from {@link XMLStreamBuffer} that retains the
 * whole envelope infoset.
 *
 * @param xsb
 *      This buffer must contain the infoset of the whole envelope.
 */
public static @NotNull Message create(@NotNull XMLStreamBuffer xsb) {
    // TODO: we should be able to let Messae know that it's working off from a buffer,
    // to make some of the operations more efficient.
    // meanwhile, adding this as an API so that our users can take advantage of it
    // when we get around to such an implementation later.
    try {
        return create(xsb.readAsXMLStreamReader());
    } catch (XMLStreamException e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #10
Source File: Messages.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Message} from {@link XMLStreamBuffer} that retains the
 * whole envelope infoset.
 *
 * @param xsb
 *      This buffer must contain the infoset of the whole envelope.
 */
public static @NotNull Message create(@NotNull XMLStreamBuffer xsb) {
    // TODO: we should be able to let Messae know that it's working off from a buffer,
    // to make some of the operations more efficient.
    // meanwhile, adding this as an API so that our users can take advantage of it
    // when we get around to such an implementation later.
    try {
        return create(xsb.readAsXMLStreamReader());
    } catch (XMLStreamException e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #11
Source File: Messages.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Message} from {@link XMLStreamBuffer} that retains the
 * whole envelope infoset.
 *
 * @param xsb
 *      This buffer must contain the infoset of the whole envelope.
 */
public static @NotNull Message create(@NotNull XMLStreamBuffer xsb) {
    // TODO: we should be able to let Messae know that it's working off from a buffer,
    // to make some of the operations more efficient.
    // meanwhile, adding this as an API so that our users can take advantage of it
    // when we get around to such an implementation later.
    try {
        return create(xsb.readAsXMLStreamReader());
    } catch (XMLStreamException e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #12
Source File: Messages.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Message} from {@link XMLStreamBuffer} that retains the
 * whole envelope infoset.
 *
 * @param xsb
 *      This buffer must contain the infoset of the whole envelope.
 */
public static @NotNull Message create(@NotNull XMLStreamBuffer xsb) {
    // TODO: we should be able to let Messae know that it's working off from a buffer,
    // to make some of the operations more efficient.
    // meanwhile, adding this as an API so that our users can take advantage of it
    // when we get around to such an implementation later.
    try {
        return create(xsb.readAsXMLStreamReader());
    } catch (XMLStreamException e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #13
Source File: Messages.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Message} from {@link XMLStreamBuffer} that retains the
 * whole envelope infoset.
 *
 * @param xsb
 *      This buffer must contain the infoset of the whole envelope.
 */
public static @NotNull Message create(@NotNull XMLStreamBuffer xsb) {
    // TODO: we should be able to let Messae know that it's working off from a buffer,
    // to make some of the operations more efficient.
    // meanwhile, adding this as an API so that our users can take advantage of it
    // when we get around to such an implementation later.
    try {
        return create(xsb.readAsXMLStreamReader());
    } catch (XMLStreamException e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #14
Source File: Messages.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Message} from {@link XMLStreamBuffer} that retains the
 * whole envelope infoset.
 *
 * @param xsb
 *      This buffer must contain the infoset of the whole envelope.
 */
public static @NotNull Message create(@NotNull XMLStreamBuffer xsb) {
    // TODO: we should be able to let Messae know that it's working off from a buffer,
    // to make some of the operations more efficient.
    // meanwhile, adding this as an API so that our users can take advantage of it
    // when we get around to such an implementation later.
    try {
        return create(xsb.readAsXMLStreamReader());
    } catch (XMLStreamException e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #15
Source File: Messages.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Message} from {@link XMLStreamBuffer} that retains the
 * whole envelope infoset.
 *
 * @param xsb
 *      This buffer must contain the infoset of the whole envelope.
 */
public static @NotNull Message create(@NotNull XMLStreamBuffer xsb) {
    // TODO: we should be able to let Messae know that it's working off from a buffer,
    // to make some of the operations more efficient.
    // meanwhile, adding this as an API so that our users can take advantage of it
    // when we get around to such an implementation later.
    try {
        return create(xsb.readAsXMLStreamReader());
    } catch (XMLStreamException e) {
        throw new XMLStreamReaderException(e);
    }
}
 
Example #16
Source File: Messages.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Message} from {@link XMLStreamBuffer} that retains the
 * whole envelope infoset.
 *
 * @param xsb
 *      This buffer must contain the infoset of the whole envelope.
 */
public static @NotNull Message create(@NotNull XMLStreamBuffer xsb) {
    // TODO: we should be able to let Messae know that it's working off from a buffer,
    // to make some of the operations more efficient.
    // meanwhile, adding this as an API so that our users can take advantage of it
    // when we get around to such an implementation later.
    try {
        return create(xsb.readAsXMLStreamReader());
    } catch (XMLStreamException e) {
        throw new XMLStreamReaderException(e);
    }
}