Subversion Repositories SmartDukaan

Rev

Rev 500 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 500 Rev 580
Line 101... Line 101...
101
	 */
101
	 */
102
	public String getLocation() {
102
	public String getLocation() {
103
		return location;
103
		return location;
104
	}
104
	}
105
 
105
 
-
 
106
	/**
-
 
107
	 * parse the youtube url and return  youtube id
-
 
108
	 * @return the youtube id.
-
 
109
	 */
106
	public String getYoutubeId(){
110
	public String getYoutubeId(){
107
		StringTokenizer token = new StringTokenizer(location,"?v=");
111
        String[] token = location.split("\\?v=");
108
		if(token.countTokens() == 2){
112
        if(token.length == 2){
109
			token.nextToken();
-
 
110
			return token.nextToken();
113
			return token[1];
111
		}
114
		}
112
		return "";
115
		return "";
113
	}
116
	}
114
	
117
	
115
	/**
118
	/**