public class URLConnector extends Object implements Connector, Serializable
Connector
implementation using URLConnection
.Modifier and Type | Field and Description |
---|---|
static URLConnector |
INSTANCE
Reusable, threadsafe
URLConnector instance. |
Constructor and Description |
---|
URLConnector() |
public static final URLConnector INSTANCE
URLConnector
instance.public String get(String link) throws IOException
String
.get
in interface Connector
link
- a full link, including schemeString
, never null
MalformedURLException
- as thrown by URL.URL(String)
IOException
- if a problem occurred with the connectionCopyright © 2018. All rights reserved.