@Test public void test02() throws Exception { String urlStr = "http://c.hiphotos.baidu.com/image/pic/item/6c224f4a20a44623bb7d15b59c22720e0df3d7b6.jpg"; // System.err.println(urlStr.split("//").length); StreamUtil.parseUrl2Path(urlStr); }