Package nu.fw.jeti.plugins.buddyspacemaps.xml

Examples of nu.fw.jeti.plugins.buddyspacemaps.xml.ImgTag


        // first goes through the mapTag and looks for map images
        // all images are uploaded and OOB is added
        Enumeration layers = map.layers();
        while (layers.hasMoreElements()) {
            LayerTag l = (LayerTag) layers.nextElement();
            ImgTag img = l.getImg();
            if (img != null) {
                File imgFile = new File(completeMapPath + "/" + img.getSrc());
                String urlStr = new String("http://" + fileServer + ":" +
                                fileServerPort + fileServerPath + "/" + img.getSrc());
                URL url;
                try {
                    url = new URL(urlStr);
                    URLFileTransfer.uploadURL(imgFile, url, proxy, proxyPort);
                    msgBuilder.addExtension(new IQXOOB(url,img.getSrc()));
                } catch (MalformedURLException e) {
                    break;
                } catch (IOException e) {
                    break;
                }
View Full Code Here


        // for all layers
        Enumeration layers = map.layers();
        while (layers.hasMoreElements()) {
            LayerTag l = (LayerTag) layers.nextElement();
            // copies images
            ImgTag img = l.getImg();
            if (img != null) {
                if (!FileCopier.copyFile(new File(sourcePath + "/" + img.getSrc()),
                                         new File(destPath + "/" + img.getSrc())))
                    return false;
            }
            // for nested maps
            MapTag insetMap = l.getSrcMap();
            if (insetMap != null) {
View Full Code Here

TOP

Related Classes of nu.fw.jeti.plugins.buddyspacemaps.xml.ImgTag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.