|
||||||||||
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.DailyComic
public abstract class DailyComic
This class is useful for all those comics which are released daily and are indexed by calendar date.
Field Summary | |
---|---|
protected static java.util.TimeZone |
m_zone
use US timezone for dailycomic! |
protected Bound |
mBound
bound for this comic |
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 | |
---|---|
DailyComic()
Constructor |
Method Summary | |
---|---|
void |
addException(java.util.Calendar in,
int increment)
For those days which do not have a comic strip If the given daily 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 |
java.util.Calendar |
getCurrentCal()
Helper function to get the current calendar |
protected abstract java.util.Calendar |
getFirstCalendar()
Get a Calendar instance for the first comic strip. |
protected java.lang.String |
getFirstStripUrl()
Gets the url for the first strip |
protected abstract java.util.Calendar |
getLatestCalendar()
Get a Calendar instance for the latest comic strip. |
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 |
protected abstract java.util.Calendar |
getTimeFromUrl(java.lang.String url)
Helper function to convert the comic html URL into Calendar instance. |
abstract java.lang.String |
getUrlFromTime(java.util.Calendar cal)
Helper function to convert the Calendar instance into url |
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 static java.util.TimeZone m_zone
protected Bound mBound
Constructor Detail |
---|
public DailyComic()
Method Detail |
---|
public void addException(java.util.Calendar in, int increment)
in
- the calendar which needs to take care of thisincrement
- which date needs to be shown instead.public java.util.Calendar getCurrentCal()
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 abstract java.util.Calendar getFirstCalendar()
protected abstract java.util.Calendar getLatestCalendar()
protected abstract java.util.Calendar getTimeFromUrl(java.lang.String url)
url
- comic html url
public abstract java.lang.String getUrlFromTime(java.util.Calendar cal)
cal
- calendar instance
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 |