@Plugin(name="URL", category="TypeConverter") public static class TypeConverters.UrlConverter extends java.lang.Object implements TypeConverter<java.net.URL>
String
into a URL
.Constructor and Description |
---|
UrlConverter() |
Modifier and Type | Method and Description |
---|---|
java.net.URL |
convert(java.lang.String s)
Converts a String to a given type.
|
public java.net.URL convert(java.lang.String s) throws java.net.MalformedURLException
TypeConverter
convert
in interface TypeConverter<java.net.URL>
s
- the String to convert. Cannot be null
.java.net.MalformedURLException