1 package org.jadetower.resolver;
2
3 /*
4 Copyright (c) 2003, J Aaron Farr
5 All rights reserved.
6
7 This software is published under the terms of the JadeTower Software License,
8 a BSD derived license, a copy of which has been included with this
9 distribution in the LICENSE file. <http://www.jadetower.org>
10 */
11
12 /***
13 * simple useful utilities for working with URL's
14 */
15 public class ResolverUtils {
16
17 public static String getScheme(String uri){
18 int colon = uri.indexOf(":");
19 return uri.substring(0,colon);
20 }
21
22 public static String getPath(String uri){
23 int scheme = uri.indexOf("//");
24 return uri.substring(scheme+2);
25 }
26
27 }
This page was automatically generated by Maven