Package org.mage.plugins.card.dl

Examples of org.mage.plugins.card.dl.DownloadJob$Destination


                else if(symbol.equals("Q")) symbol = "untap";
                else if(symbol.equals("S")) symbol = "snow";
               
                String url = format(urlFmt, sizes[sizeIndex], symbol);
               
                return new DownloadJob(sym, fromURL(url), toFile(dst));
            }
        };
    }
View Full Code Here


                else if(symbol.equals("Q")) symbol = "untap";
                else if(symbol.equals("S")) symbol = "snow";

                String url = format(urlFmt, sizes[sizeIndex], symbol);

                return new DownloadJob(sym, fromURL(url), toFile(dst));
            }
        };
    }
View Full Code Here

        File dst = new File(outDir, set + "-" + rarity + ".jpg");
        if (symbolsReplacements.containsKey(set)) {
            set = symbolsReplacements.get(set);
        }
        String url = "http://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&set=" + set + "&size=small&rarity=" + rarity;
        return new DownloadJob(set + "-" + rarity, fromURL(url), toFile(dst));
    }
View Full Code Here

    public Iterator<DownloadJob> iterator() {
        ArrayList<DownloadJob> jobs = new ArrayList<>();

        for (Map.Entry<String, String> url : directLinks.entrySet()) {
            File dst = new File(outDir, url.getKey());
            jobs.add(new DownloadJob(url.getKey(), fromURL(url.getValue()), toFile(dst)));
        }
        return jobs.iterator();
    }
View Full Code Here

TOP

Related Classes of org.mage.plugins.card.dl.DownloadJob$Destination

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.