Package gsearch

Examples of gsearch.Result


        Client c = new Client();

        List<Result> lolcats = c.searchImages("eu nao sei");
        for (int i = 0; i < lolcats.size(); i++) {
            try {
                Result rs = lolcats.get(i);
                URL link = new URL(rs.getUrl());

                File file = new File("/home/manchini/nomeAlbum" + i + ".jpg");
//Serve the file
                InputStream in = link.openStream();
                FileOutputStream out = new FileOutputStream(file);
View Full Code Here

TOP

Related Classes of gsearch.Result

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.