com.sun.xml.ws.api.streaming.XMLStreamReaderFactory.doCreate()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(77)

本文整理了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

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);
}

相关文章