javaudp地址匹配-创新互联
publ成都创新互联公司从2013年成立,是专业互联网技术服务公司,拥有项目成都网站建设、网站建设网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元黄埔做网站,已为上家服务,为黄埔各地企业和个人服务,联系电话:028-86922220ic static boolean regexUdpUrl(String url)
{
if (url == null)
return false;
Pattern pattern = Pattern
.compile("[udp]+[://]+((\d){1,})+\.((\d){1,})+\.((\d){1,})+\.((\d){1,})+:((\d){1,})");
Matcher matcher = pattern.matcher(url);
if(matcher.matches())
{
return Integer.valueOf(matcher.group(1))< 255
&&Integer.valueOf(matcher.group(3))<255
&&Integer.valueOf(matcher.group(5))<255
&&Integer.valueOf(matcher.group(7))<255
&&Integer.valueOf(matcher.group(9))<65536;
}
else
{
return false;
}
}
网站题目:javaudp地址匹配-创新互联
转载注明:http://lswzjz.com/article/cdcggi.html
{
if (url == null)
return false;
Pattern pattern = Pattern
.compile("[udp]+[://]+((\d){1,})+\.((\d){1,})+\.((\d){1,})+\.((\d){1,})+:((\d){1,})");
Matcher matcher = pattern.matcher(url);
if(matcher.matches())
{
return Integer.valueOf(matcher.group(1))< 255
&&Integer.valueOf(matcher.group(3))<255
&&Integer.valueOf(matcher.group(5))<255
&&Integer.valueOf(matcher.group(7))<255
&&Integer.valueOf(matcher.group(9))<65536;
}
else
{
return false;
}
}
网站题目:javaudp地址匹配-创新互联
转载注明:http://lswzjz.com/article/cdcggi.html