Package echo.util
Class UrlWrapper
- java.lang.Object
-
- echo.util.UrlWrapper
-
class UrlWrapper extends java.lang.Object
Wraps the java URL class so that it exposes methods to determine if entered values are urls or not.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
spec
-
Constructor Summary
Constructors Constructor Description UrlWrapper(java.lang.String spec)
Creates a new UrlWrapper with a supplied url
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isUrl()
Returns true if the specified string is a URLjava.io.InputStream
openStream()
Open an input stream to the location of the url
-