类 URL
java.lang.Object
org.apache.pulsar.client.api.url.URL
Wrapper around
java.net.URL to improve usability.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static final URLCreates java.net.URL with data protocol support.getContent(Class<?>[] classes)
-
构造器详细资料
-
URL
public URL(String spec) throws MalformedURLException, URISyntaxException, InstantiationException, IllegalAccessException
-
-
方法详细资料
-
createURL
public static final URL createURL(String spec) throws MalformedURLException, URISyntaxException, InstantiationException, IllegalAccessException Creates java.net.URL with data protocol support.- 参数:
spec- the input URL as String- 返回:
- java.net.URL instance
- 抛出:
MalformedURLExceptionURISyntaxExceptionInstantiationExceptionIllegalAccessException
-
openConnection
- 抛出:
IOException
-
getContent
- 抛出:
IOException
-
getContent
- 抛出:
IOException
-