Java Bit Shift shiftPath(String uri)

Here you can find the source of shiftPath(String uri)

Description

shift Path

License

Open Source License

Parameter

Parameter Description
uri a parameter

Declaration

public static String shiftPath(String uri) 

Method Source Code

//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;
    }
}

Related

  1. shiftIdentifier(StringBuffer buffer, int posBegin, int posEnd)
  2. shiftKeyword(StringBuffer buffer, int posBegin, int posEnd, String keyword, boolean ignoreCase, boolean wholeWord)
  3. shiftLastAlphabets(String id)
  4. shiftLeft(char ch)
  5. shiftLeft(final Character orig, final int shiftDistance)
  6. shiftsForNextPowerOfTwo(final int targetSize)
  7. shiftText(final int pads, final String padding, String textPassed)
  8. shiftUpLeft(long b)