Package com.google.gdata.client.books

Examples of com.google.gdata.client.books.VolumeQuery


   * @throws IOException error sending request or reading the feed.
   */
  private static void searchVolumes(BooksService service,
                                    boolean authenticated)
      throws IOException, ServiceException {
    VolumeQuery query = new VolumeQuery(new URL(VOLUMES_FEED));

    // exclude no-preview book (by default, they are included)
    query.setMinViewability(VolumeQuery.MinViewability.PARTIAL);

    System.out.println("\nEnter search terms: ");
    String searchTerms = readLine();
    System.out.println();

    query.setFullTextQuery(searchTerms);

    printUnderlined("Running Search for '" + searchTerms + "'");
    VolumeFeed volumeFeed = service.query(query, VolumeFeed.class);
    printVolumeFeed(volumeFeed);

View Full Code Here

TOP

Related Classes of com.google.gdata.client.books.VolumeQuery

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.