jaroslav@1367: /** jaroslav@1367: * Back 2 Browser Bytecode Translator jaroslav@1367: * Copyright (C) 2012 Jaroslav Tulach jaroslav@1367: * jaroslav@1367: * This program is free software: you can redistribute it and/or modify jaroslav@1367: * it under the terms of the GNU General Public License as published by jaroslav@1367: * the Free Software Foundation, version 2 of the License. jaroslav@1367: * jaroslav@1367: * This program is distributed in the hope that it will be useful, jaroslav@1367: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@1367: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@1367: * GNU General Public License for more details. jaroslav@1367: * jaroslav@1367: * You should have received a copy of the GNU General Public License jaroslav@1367: * along with this program. Look for COPYING file in the top folder. jaroslav@1367: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@1367: */ jaroslav@1367: package org.apidesign.vm4brwsr; jaroslav@1367: jaroslav@1367: import java.net.URL; jaroslav@1367: jaroslav@1367: /** jaroslav@1367: * jaroslav@1367: * @author Jaroslav Tulach jaroslav@1367: */ jaroslav@1367: public class DelayedLoading { jaroslav@1367: public static String toStrViaURI(String url) throws Exception { jaroslav@1367: URL u = new URL(url); jaroslav@1367: return u.toURI().toString(); jaroslav@1367: } jaroslav@1367: }