|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.es.skreemr.SkreemRSearch
public class SkreemRSearch
Service uses SkreemR.com to look for songs on the web and returns a list of songs that can be dealt with later
| Constructor Summary | |
|---|---|
SkreemRSearch()
Creates a new SkreemRSearch Object. |
|
| Method Summary | |
|---|---|
String |
getLastKeywords()
|
int |
getLastPage()
|
int |
getLastSize()
|
List<SkreemRSong> |
getResults()
|
List<SkreemRSong> |
nextPage()
Continue search on next page, keeps same keywords and size. |
List<SkreemRSong> |
search(String keyWords,
int page)
Make a new search. |
List<SkreemRSong> |
search(String keyWords,
int size,
int page)
Make a new search. |
void |
startElement(String namespaceURI,
String localName,
String name,
Attributes atts)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SkreemRSearch()
| Method Detail |
|---|
public List<SkreemRSong> search(String keyWords,
int size,
int page)
throws IOException,
SAXException
keyWords - The search parameters.size - The number of pages of results to be returned.page - The first page to start at.
IOException
SAXException
public List<SkreemRSong> search(String keyWords,
int page)
throws IOException,
SAXException
keyWords - The search parameters.page - The first page to start at.
IOException
SAXException
public List<SkreemRSong> nextPage()
throws IOException,
SAXException
IOException
SAXExceptionpublic List<SkreemRSong> getResults()
public String getLastKeywords()
public int getLastSize()
public int getLastPage()
public void startElement(String namespaceURI,
String localName,
String name,
Attributes atts)
startElement in interface ContentHandlerstartElement in class DefaultHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||