public class URL extends Object
java.net.URL to improve usability.| Modifier and Type | Method and Description |
|---|---|
Object |
getContent() |
Object |
getContent(Class<?>[] classes) |
URLConnection |
openConnection() |
public URL(String spec) throws MalformedURLException, URISyntaxException, InstantiationException, IllegalAccessException
public URLConnection openConnection() throws IOException
IOExceptionpublic Object getContent() throws IOException
IOExceptionpublic Object getContent(Class<?>[] classes) throws IOException
IOExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.