Java源码示例:com.sun.xml.internal.ws.streaming.XMLStreamReaderException
示例1
/**
* 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);
}
}
示例2
/**
* 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);
}
}
示例3
/**
* 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);
}
}
示例4
/**
* 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);
}
}
示例5
/**
* 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);
}
}
示例6
/**
* 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);
}
}
示例7
/**
* 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);
}
}
示例8
/**
* 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);
}
}
示例9
/**
* 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);
}
}
示例10
/**
* 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);
}
}
示例11
/**
* 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);
}
}
示例12
/**
* 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);
}
}
示例13
/**
* 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);
}
}
示例14
/**
* 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);
}
}
示例15
/**
* 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);
}
}
示例16
/**
* 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);
}
}