< prev index next >
test/jaxp/javax/xml/jaxp/libs/jaxp/library/JAXPTestUtilities.java
Print this page
rev 52699 : 8214014: Remove vestiges of gopher: protocol proxy support
*** 269,279 ****
* the ones found in the examples of RFC2396); false otherwise
*/
protected static boolean isCommonURL(String s) {
if (null == s)
return false;
! return Pattern.compile("^(file:|http:|ftp:|gopher:|mailto:|news:|telnet:)")
.matcher(s).matches();
}
/**
* Utility method to translate a String filename to URL.
--- 269,279 ----
* the ones found in the examples of RFC2396); false otherwise
*/
protected static boolean isCommonURL(String s) {
if (null == s)
return false;
! return Pattern.compile("^(file:|http:|ftp:|mailto:|news:|telnet:)")
.matcher(s).matches();
}
/**
* Utility method to translate a String filename to URL.
< prev index next >