本文整理了Java中com.sun.xml.ws.api.streaming.XMLStreamReaderFactory.doCreate()
方法的一些代码示例,展示了XMLStreamReaderFactory.doCreate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLStreamReaderFactory.doCreate()
方法的具体详情如下:
包路径:com.sun.xml.ws.api.streaming.XMLStreamReaderFactory
类名称:XMLStreamReaderFactory
方法名:doCreate
暂无
代码示例来源:origin: com.sun.xml.ws/rt
public static XMLStreamReader create(InputSource source, boolean rejectDTDs) {
try {
// Char stream available?
if (source.getCharacterStream() != null) {
return get().doCreate(source.getSystemId(), source.getCharacterStream(), rejectDTDs);
}
// Byte stream available?
if (source.getByteStream() != null) {
return get().doCreate(source.getSystemId(), source.getByteStream(), rejectDTDs);
}
// Otherwise, open URI
return get().doCreate(source.getSystemId(), new URL(source.getSystemId()).openStream(),rejectDTDs);
} catch (IOException e) {
throw new XMLReaderException("stax.cantCreate",e);
}
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public static XMLStreamReader create(InputSource source, boolean rejectDTDs) {
try {
// Char stream available?
if (source.getCharacterStream() != null) {
return get().doCreate(source.getSystemId(), source.getCharacterStream(), rejectDTDs);
}
// Byte stream available?
if (source.getByteStream() != null) {
return get().doCreate(source.getSystemId(), source.getByteStream(), rejectDTDs);
}
// Otherwise, open URI
return get().doCreate(source.getSystemId(), new URL(source.getSystemId()).openStream(),rejectDTDs);
} catch (IOException e) {
throw new XMLReaderException("stax.cantCreate",e);
}
}
代码示例来源:origin: javaee/metro-jax-ws
public static XMLStreamReader create(InputSource source, boolean rejectDTDs) {
try {
// Char stream available?
if (source.getCharacterStream() != null) {
return get().doCreate(source.getSystemId(), source.getCharacterStream(), rejectDTDs);
}
// Byte stream available?
if (source.getByteStream() != null) {
return get().doCreate(source.getSystemId(), source.getByteStream(), rejectDTDs);
}
// Otherwise, open URI
return get().doCreate(source.getSystemId(), new URL(source.getSystemId()).openStream(),rejectDTDs);
} catch (IOException e) {
throw new XMLReaderException("stax.cantCreate",e);
}
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public abstract XMLStreamReader doCreate(String systemId, Reader reader, boolean rejectDTDs);
代码示例来源:origin: javaee/metro-jax-ws
public abstract XMLStreamReader doCreate(String systemId, Reader reader, boolean rejectDTDs);
代码示例来源:origin: com.sun.xml.ws/rt
public abstract XMLStreamReader doCreate(String systemId, Reader reader, boolean rejectDTDs);
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public static XMLStreamReader create(@Nullable String systemId, Reader reader, boolean rejectDTDs) {
return get().doCreate(systemId,reader,rejectDTDs);
}
代码示例来源:origin: javaee/metro-jax-ws
public static XMLStreamReader create(@Nullable String systemId, InputStream in, boolean rejectDTDs) {
return get().doCreate(systemId,in,rejectDTDs);
}
代码示例来源:origin: com.sun.xml.ws/rt
public static XMLStreamReader create(@Nullable String systemId, InputStream in, boolean rejectDTDs) {
return get().doCreate(systemId,in,rejectDTDs);
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public static XMLStreamReader create(@Nullable String systemId, InputStream in, boolean rejectDTDs) {
return get().doCreate(systemId,in,rejectDTDs);
}
代码示例来源:origin: com.sun.xml.ws/rt
public static XMLStreamReader create(@Nullable String systemId, Reader reader, boolean rejectDTDs) {
return get().doCreate(systemId,reader,rejectDTDs);
}
代码示例来源:origin: javaee/metro-jax-ws
public static XMLStreamReader create(@Nullable String systemId, Reader reader, boolean rejectDTDs) {
return get().doCreate(systemId,reader,rejectDTDs);
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public static XMLStreamReader create(@Nullable String systemId, InputStream in, @Nullable String encoding, boolean rejectDTDs) {
return (encoding == null)
? create(systemId, in, rejectDTDs)
: get().doCreate(systemId,in,encoding,rejectDTDs);
}
代码示例来源:origin: javaee/metro-jax-ws
public static XMLStreamReader create(@Nullable String systemId, InputStream in, @Nullable String encoding, boolean rejectDTDs) {
return (encoding == null)
? create(systemId, in, rejectDTDs)
: get().doCreate(systemId,in,encoding,rejectDTDs);
}
代码示例来源:origin: com.sun.xml.ws/rt
public static XMLStreamReader create(@Nullable String systemId, InputStream in, @Nullable String encoding, boolean rejectDTDs) {
return (encoding == null)
? create(systemId, in, rejectDTDs)
: get().doCreate(systemId,in,encoding,rejectDTDs);
}
内容来源于网络,如有侵权,请联系作者删除!