|
||||||||||
| 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 | |
|---|---|
java.lang.String |
getLastKeywords()
|
int |
getLastPage()
|
int |
getLastSize()
|
java.util.List<SkreemRSong> |
getResults()
|
java.util.List<SkreemRSong> |
nextPage()
Continue search on next page, keeps same keywords and size. |
java.util.List<SkreemRSong> |
search(java.lang.String keyWords,
int page)
Make a new search. |
java.util.List<SkreemRSong> |
search(java.lang.String keyWords,
int size,
int page)
Make a new search. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String name,
org.xml.sax.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 java.util.List<SkreemRSong> search(java.lang.String keyWords,
int size,
int page)
throws java.io.IOException,
org.xml.sax.SAXException
keyWords - The search parameters.size - The number of pages of results to be returned.page - The first page to start at.
java.io.IOException
org.xml.sax.SAXException
public java.util.List<SkreemRSong> search(java.lang.String keyWords,
int page)
throws java.io.IOException,
org.xml.sax.SAXException
keyWords - The search parameters.page - The first page to start at.
java.io.IOException
org.xml.sax.SAXException
public java.util.List<SkreemRSong> nextPage()
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXExceptionpublic java.util.List<SkreemRSong> getResults()
public java.lang.String getLastKeywords()
public int getLastSize()
public int getLastPage()
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes atts)
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||