protected ArrayList<String> splitUris(String uri){
  ArrayList<String> uris=new ArrayList<String>();
  int start=0;
  while (true) {
    if (uri.charAt(start) != '/') {
      uris=null;
      break;
    }
    final int secondSlash=uri.indexOf('/',start + 1);
    if (secondSlash == -1) {
      uris=null;
      break;
    }
    boolean isDone=false;
    int thirdSlash=uri.indexOf('/',secondSlash + 1);
    if (thirdSlash == -1) {
      thirdSlash=uri.length();
      isDone=true;
    }
    uris.add(uri.substring(start,thirdSlash));
    if (isDone) {
      break;
    }
    start=thirdSlash;
  }
  return uris;
}

protected ArrayList < String > splitUris ( String uri ) { ArrayList < String > uris = new ArrayList < String > ( ) ; int start = 0 ; while ( true ) { if ( uri . charAt ( start ) != '/' ) { uris = null ; break ; } final int secondSlash = uri . indexOf ( '/' , start + 1 ) ; if ( secondSlash == - 1 ) { uris = null ; break ; } boolean isDone = false ; int thirdSlash = uri . indexOf ( '/' , secondSlash + 1 ) ; if ( thirdSlash == - 1 ) { thirdSlash = uri . length ( ) ; isDone = true ; } uris . add ( uri . substring ( start , thirdSlash ) ) ; if ( isDone ) { break ; } start = thirdSlash ; } return uris ; }
splits the uri into individual uris for panes .
