📄 urlchecker.java
字号:
package ir.webutils;import java.net.*;/** * URLChecker.java * trys to clean up some URLs that do not conform to the standard and cause confusion. Valid URL's are returned * unchanged. The idea behind this class is to fix some common problems (like leaving spaces in URLs) with * simple heuristics. * * June 1, 2001 * Ted Wild */public class URLChecker { public static URL getURL(String urlString) throws MalformedURLException { String checkedUrl = urlString.replace(' ', '+'); return new URL(checkedUrl); } private URLChecker() { }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -