Class UrlUtils
java.lang.Object
io.github.yvasyliev.forwarder.telegram.reddit.util.UrlUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFileName(URL url) Extracts the file name from the givenURL.static InputStreamopenStream(URL url) Opens anInputStreamfrom the givenURL.
-
Method Details
-
openStream
Opens anInputStreamfrom the givenURL.- Parameters:
url- the URL to open the stream from- Returns:
- the opened
InputStream - Throws:
IOException- if an I/O error occurs
-
getFileName
-