public String next() { if (isEnd()) return null; int nEnd = strPath.indexOf('/', nStart); if (nEnd < 0) nEnd = strPath.length(); String res = strPath.substring(nStart, nEnd); nStart = nEnd + 1; return URI.urlDecode(res).trim(); }