|
||||||||||
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
com.blogspot.applications4android.comicreader.comictypes.ArchivedComic
com.blogspot.applications4android.comicreader.comictypes.YearlyArchivedComic
public abstract class YearlyArchivedComic
Base class for all archived comics. For a comic to be decided as archived comic, it should have a webpage containing all comic urls which have been released so far
Field Summary |
---|
Fields inherited from class com.blogspot.applications4android.comicreader.comictypes.ArchivedComic |
---|
mComicUrls |
Fields inherited from class com.blogspot.applications4android.comicreader.comictypes.IndexedComic |
---|
mBound, mLatestId |
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 | |
---|---|
YearlyArchivedComic()
Constructor |
Method Summary | |
---|---|
protected void |
fetchAllComicUrls()
Fetch all the comic urls |
protected java.lang.String[] |
getAllComicUrls(java.io.BufferedReader reader)
Main function responsible for parsing the archive url and generating the list of all comic urls. |
protected abstract java.util.ArrayList<java.lang.String> |
getAllComicUrls(java.io.BufferedReader reader,
int year)
Main function responsible for parsing the archive url and generating the list of all comic urls. |
protected java.lang.String |
getArchiveUrl()
Return the archive url |
protected abstract java.lang.String |
getArchiveUrl(int year)
Returns the archive url for the given year |
protected abstract int |
getFirstYear()
Returns the first year when the comic was released |
protected abstract boolean |
neededReversal()
Whether a reversal of the list is needed at each year Reversal is needed if the comic has, in each year's archive page, comics being listed in latest-first-order |
Methods inherited from class com.blogspot.applications4android.comicreader.comictypes.ArchivedComic |
---|
getFirstId, getFrontPageUrl, getIdFromStripUrl, getLatestStripUrl, getStripUrlFromId, parseForLatestId, queryUid |
Methods inherited from class com.blogspot.applications4android.comicreader.comictypes.IndexedComic |
---|
addException, dialogType, getBound, getCurrentId, getFirstStripUrl, getLatestId, getNextStripUrl, getPreviousStripUrl, getRandomStripUrl, urlsNotForCaching |
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, 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 |
Constructor Detail |
---|
public YearlyArchivedComic()
Method Detail |
---|
protected void fetchAllComicUrls()
ArchivedComic
fetchAllComicUrls
in class ArchivedComic
protected java.lang.String getArchiveUrl()
ArchivedComic
getArchiveUrl
in class ArchivedComic
protected java.lang.String[] getAllComicUrls(java.io.BufferedReader reader) throws java.io.IOException
ArchivedComic
getAllComicUrls
in class ArchivedComic
reader
- buffered reader from which to parse the comic urls.
java.io.IOException
protected abstract java.util.ArrayList<java.lang.String> getAllComicUrls(java.io.BufferedReader reader, int year) throws java.io.IOException
reader
- buffered reader from which to parse the comic urls.year
- current year
java.lang.Exception
java.io.IOException
protected abstract int getFirstYear()
protected abstract java.lang.String getArchiveUrl(int year)
year
- year
protected abstract boolean neededReversal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |