Here you can find the source of shiftPath(String uri)
Parameter | Description |
---|---|
uri | a parameter |
public static String shiftPath(String uri)
//package com.java2s; /*// ww w . j a va 2s . c o m * Copyright 2004-2007 by Itensil, Inc., * All rights reserved. * * This software is the confidential and proprietary information * of Itensil, Inc. ("Confidential Information"). You * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Itensil. */ public class Main { /** * * @param uri * @return */ public static String shiftPath(String uri) { int pos = uri.indexOf('/', 1); if (pos > 0) { uri = uri.substring(pos); } return uri; } }