Back to project page jive-android-core-sdk-example.
The source code is released under:
Apache License
If you think the Android project jive-android-core-sdk-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jivesoftware.example.utils; /*from w w w .j a v a2 s. c om*/ import java.net.MalformedURLException; import java.net.URL; /** * Created by mark.schisler on 9/22/14. */ public class URLUtils { public static String getPath(String url) { try { return new URL(url).getPath().substring(1); } catch (MalformedURLException e) { return null; } } }