⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 urlchecker.java

📁 这是一个用于测试用的搜索引擎的案例
💻 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 + -