edu.iastate.jtm.assistant
Class GoogleScholar

java.lang.Object
  extended by edu.iastate.jtm.assistant.GoogleScholar

public class GoogleScholar
extends java.lang.Object

Author:
Jing Ding edu.iastate.jtm.browser jtm

Field Summary
static int ALL_WORDS
           
static int AT_LEAST_ONE
           
static int AUTHOR
           
static int EXACT_PHRASE
           
static int PUBLICATION
           
static int WITHOUT
           
static int YEAR_FROM
           
static int YEAR_TO
           
 
Constructor Summary
GoogleScholar(java.lang.String email)
           
 
Method Summary
static java.lang.String advancedUrl(java.lang.String title, java.lang.String author)
           
 java.lang.String getFullUrl()
           
 java.lang.String getShortUrl()
           
static void main(java.lang.String[] args)
           
static java.lang.String quickUrl(java.lang.String term)
           
 void resetAttributes()
           
 void sendQuery(java.lang.String query)
           
 void setAttribute(int key, java.lang.String val)
           
 void verbose(boolean v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_WORDS

public static final int ALL_WORDS
See Also:
Constant Field Values

EXACT_PHRASE

public static final int EXACT_PHRASE
See Also:
Constant Field Values

AT_LEAST_ONE

public static final int AT_LEAST_ONE
See Also:
Constant Field Values

WITHOUT

public static final int WITHOUT
See Also:
Constant Field Values

AUTHOR

public static final int AUTHOR
See Also:
Constant Field Values

PUBLICATION

public static final int PUBLICATION
See Also:
Constant Field Values

YEAR_FROM

public static final int YEAR_FROM
See Also:
Constant Field Values

YEAR_TO

public static final int YEAR_TO
See Also:
Constant Field Values
Constructor Detail

GoogleScholar

public GoogleScholar(java.lang.String email)
Method Detail

setAttribute

public void setAttribute(int key,
                         java.lang.String val)
                  throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

verbose

public void verbose(boolean v)

resetAttributes

public void resetAttributes()

getFullUrl

public java.lang.String getFullUrl()
                            throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

getShortUrl

public java.lang.String getShortUrl()

advancedUrl

public static java.lang.String advancedUrl(java.lang.String title,
                                           java.lang.String author)

quickUrl

public static java.lang.String quickUrl(java.lang.String term)

sendQuery

public void sendQuery(java.lang.String query)
               throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException