|
||||||||||
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
com.blogspot.applications4android.comicreader.comictypes.DailyGoComicsCom
public class DailyGoComicsCom
Base class for all comic series from gocomics.com
Field Summary | |
---|---|
protected java.lang.String |
mComicName
set this comic name during the constructor of the child classes |
protected java.util.Calendar |
mFirstCal
set this first calendar date during the constructor of the child classes |
Fields inherited from class com.blogspot.applications4android.comicreader.comictypes.DailyComic |
---|
m_zone, mBound |
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 | |
---|---|
DailyGoComicsCom()
Constructor |
Method Summary | |
---|---|
java.lang.String |
getCalendarJsUrl(int year,
int month)
get the url for the calendar json object for the given year and month |
java.lang.String |
getComicWebPageUrl()
Get the main page url for the current comic series |
protected java.util.Calendar |
getFirstCalendar()
Get a Calendar instance for the first comic strip. |
java.util.Calendar |
getFirstStripCalendar()
Get the first strip calendar |
protected java.lang.String |
getFirstStripUrl()
Gets the url for the first strip |
protected 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 |
Strip |
getPreviousSessionStrip()
Gets the previous session 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 java.util.Calendar |
getTimeFromUrl(java.lang.String url)
Helper function to convert the comic html URL into Calendar instance. |
java.lang.String |
getUrlFromTime(java.util.Calendar cal)
Helper function to convert the Calendar instance into url |
protected boolean |
htmlNeeded()
Whether one needs to parse the html file in order to find the strip url |
protected java.lang.String |
parse(java.lang.String url,
java.io.BufferedReader reader,
Strip strip)
Function to read every line from the reader and extract strip-info |
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.comictypes.DailyComic |
---|
addException, dialogType, getBound, getCurrentCal |
Methods inherited from class com.blogspot.applications4android.comicreader.core.Comic |
---|
clearCache, clearHistory, currentHasImageText, currentTitleAsValidFilename, downloadCurrentStrip, getComicName, getCurrentStrip, getDefaultZoom, getFirstStrip, getLatestStrip, getLatestStripForcefully, getLaunchType, getName, getNextStrip, 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 |
---|
parse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String mComicName
protected java.util.Calendar mFirstCal
Constructor Detail |
---|
public DailyGoComicsCom()
Method Detail |
---|
public java.util.Calendar getFirstStripCalendar()
public java.lang.String getCalendarJsUrl(int year, int month)
year
- year of interestmonth
- month of interest
public java.lang.String getComicWebPageUrl()
Comic
getComicWebPageUrl
in class Comic
public Strip getPreviousSessionStrip()
Comic
getPreviousSessionStrip
in class Comic
protected java.lang.String getFirstStripUrl()
Comic
getFirstStripUrl
in class DailyComic
protected java.lang.String getLatestStripUrl()
Comic
getLatestStripUrl
in class DailyComic
protected java.lang.String getNextStripUrl()
Comic
getNextStripUrl
in class DailyComic
protected java.lang.String getPreviousStripUrl()
Comic
getPreviousStripUrl
in class DailyComic
protected java.lang.String getRandomStripUrl()
Comic
getRandomStripUrl
in class DailyComic
protected java.util.Calendar getFirstCalendar()
DailyComic
getFirstCalendar
in class DailyComic
protected java.util.Calendar getLatestCalendar()
DailyComic
getLatestCalendar
in class DailyComic
protected java.util.Calendar getTimeFromUrl(java.lang.String url)
DailyComic
getTimeFromUrl
in class DailyComic
url
- comic html url
public java.lang.String getUrlFromTime(java.util.Calendar cal)
DailyComic
getUrlFromTime
in class DailyComic
cal
- calendar instance
protected boolean htmlNeeded()
ComicParser
htmlNeeded
in class ComicParser
protected java.lang.String parse(java.lang.String url, java.io.BufferedReader reader, Strip strip) throws java.io.IOException
ComicParser
parse
in class ComicParser
url
- html page urlreader
- readerstrip
- the strip where to store the info
java.io.IOException
protected java.lang.String[] urlsNotForCaching()
Comic
urlsNotForCaching
in class DailyComic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |