|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.blogspot.applications4android.comicreader.core.ComicParser
com.blogspot.applications4android.comicreader.core.Comic
com.blogspot.applications4android.comicreader.comictypes.IndexedComic
public abstract class IndexedComic
Base class for all indexed comics
Field Summary | |
---|---|
protected Bound |
mBound
bound for this comic |
protected int |
mLatestId
latest comic id |
Fields inherited from class com.blogspot.applications4android.comicreader.core.Comic |
---|
DIALOG_DATE, DIALOG_NUMBER, mFirstUid, mLatestUid, mPrevSessionUid, NAV_CURRENT, NAV_FIRST, NAV_LATEST, NAV_LATEST_FORCE, NAV_NEXT, NAV_PREV_SESSION, NAV_PREVIOUS, NAV_RANDOM, PROPS, TYPE_CACHING, TYPE_FAVORITE, TYPE_LATEST, TYPE_PREV_SESSION, TYPE_PREVIEW |
Constructor Summary | |
---|---|
IndexedComic()
Constructor |
Method Summary | |
---|---|
int |
addException(int in,
int increment)
For those days which do not have a comic strip If the given indexed comic series WAS irregular previously but now has been regular, then you have to override this function! |
int |
dialogType()
Type of dialog to be used for choosing comics |
Bound |
getBound()
Returns the bound for the current comic |
int |
getCurrentId()
Helper function to get the current comic id |
protected int |
getFirstId()
Returns the first comic-id |
protected java.lang.String |
getFirstStripUrl()
Gets the url for the first strip |
protected abstract java.lang.String |
getFrontPageUrl()
Return the front page URL from where to get the latest comic URL. |
protected abstract int |
getIdFromStripUrl(java.lang.String url)
Get the comic-id from strip URL |
protected int |
getLatestId()
Returns the latest comic-id |
protected java.lang.String |
getLatestStripUrl()
Gets the url for the latest strip |
protected java.lang.String |
getNextStripUrl()
Gets the url for the next strip |
protected java.lang.String |
getPreviousStripUrl()
Gets the url for the previous strip |
protected java.lang.String |
getRandomStripUrl()
Gets the url for the previous strip |
abstract java.lang.String |
getStripUrlFromId(int num)
Get the strip URL from the input comic-id. |
protected abstract int |
parseForLatestId(java.io.BufferedReader reader)
Helper function to parse the latest comic's html page in order to get the latest comic id. |
protected java.lang.String[] |
urlsNotForCaching()
Gives out the list of urls (can be regexes) which are not supposed to be cached using 'mStrips' |
Methods inherited from class com.blogspot.applications4android.comicreader.core.Comic |
---|
clearCache, clearHistory, currentHasImageText, currentTitleAsValidFilename, downloadCurrentStrip, getComicName, getComicWebPageUrl, getCurrentStrip, getDefaultZoom, getFirstStrip, getLatestStrip, getLatestStripForcefully, getLaunchType, getName, getNextStrip, getPreviousSessionStrip, getPreviousStrip, getRandomStrip, getStripFromUrl, hasPreviousSession, hasUid, isCurrentFavorite, isCurrentFirstStrip, isCurrentLatestStrip, navigateStrip, queryUid, readOnlyUnread, readProperties, setCacheEnabled, setComicName, setCurrentAsFavorite, setDefaultZoom, setLaunchType, writeProperties |
Methods inherited from class com.blogspot.applications4android.comicreader.core.ComicParser |
---|
htmlNeeded, parse, parse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Bound mBound
protected int mLatestId
Constructor Detail |
---|
public IndexedComic()
Method Detail |
---|
public int getCurrentId()
public int addException(int in, int increment)
in
- the index which needs to take care of thisincrement
- which date needs to be shown instead.
public Bound getBound()
Comic
getBound
in class Comic
public int dialogType()
Comic
dialogType
in class Comic
protected java.lang.String getLatestStripUrl()
Comic
getLatestStripUrl
in class Comic
protected java.lang.String getFirstStripUrl()
Comic
getFirstStripUrl
in class Comic
protected java.lang.String getNextStripUrl()
Comic
getNextStripUrl
in class Comic
protected java.lang.String getPreviousStripUrl()
Comic
getPreviousStripUrl
in class Comic
protected java.lang.String getRandomStripUrl()
Comic
getRandomStripUrl
in class Comic
protected int getLatestId()
protected int getFirstId()
protected abstract int parseForLatestId(java.io.BufferedReader reader) throws ComicLatestException, java.io.IOException
reader
- reader from which to parse for latest id
ComicLatestException
java.io.IOException
public abstract java.lang.String getStripUrlFromId(int num)
num
- the comic-id
protected abstract int getIdFromStripUrl(java.lang.String url)
url
- comic url
protected abstract java.lang.String getFrontPageUrl()
protected java.lang.String[] urlsNotForCaching()
Comic
urlsNotForCaching
in class Comic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |