|
||||||||||
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.RandomIndexedComic
com.blogspot.applications4android.comicreader.comics.Cyanide
public class Cyanide
Field Summary |
---|
Fields inherited from class com.blogspot.applications4android.comicreader.comictypes.RandomIndexedComic |
---|
mNextId, mPrevId |
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 | |
---|---|
Cyanide()
|
Method Summary | |
---|---|
java.lang.String |
getComicWebPageUrl()
Get the main page url for the current comic series |
protected int |
getFirstId()
Returns the first comic-id |
protected java.lang.String |
getFrontPageUrl()
Return the front page URL from where to get the latest comic URL. |
protected int |
getIdFromStripUrl(java.lang.String url)
Get the comic-id from strip URL |
protected int |
getNextStripId(java.io.BufferedReader br,
java.lang.String url)
Evaluate the next strip's index from the current strip's url |
protected int |
getPreviousStripId(java.io.BufferedReader br,
java.lang.String url)
Evaluate the previous strip's index from the current strip's url |
protected java.lang.String |
getRandUrl()
Function to return the random url |
java.lang.String |
getStripUrlFromId(int num)
Get the strip URL from the input comic-id. |
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 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 int |
parseForNextId(java.lang.String line,
int def)
Given a line containing the next strip's url, return the id |
protected int |
parseForPrevId(java.lang.String line,
int def)
Given a line containing the previous strip's url, return the id |
Methods inherited from class com.blogspot.applications4android.comicreader.comictypes.RandomIndexedComic |
---|
getNextStripUrl, getPreviousStripUrl, getRandomStripUrl, setNextId, setPreviousId, urlsNotForCaching |
Methods inherited from class com.blogspot.applications4android.comicreader.comictypes.IndexedComic |
---|
addException, dialogType, getBound, getCurrentId, getFirstStripUrl, getLatestId, getLatestStripUrl |
Methods inherited from class com.blogspot.applications4android.comicreader.core.Comic |
---|
clearCache, clearHistory, currentHasImageText, currentTitleAsValidFilename, downloadCurrentStrip, getComicName, 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 |
---|
parse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cyanide()
Method Detail |
---|
protected int getFirstId()
IndexedComic
getFirstId
in class IndexedComic
protected java.lang.String getRandUrl()
RandomIndexedComic
getRandUrl
in class RandomIndexedComic
protected int getNextStripId(java.io.BufferedReader br, java.lang.String url)
RandomIndexedComic
getNextStripId
in class RandomIndexedComic
br
- reader for the current strip's url connectionurl
- current strip's url
protected int getPreviousStripId(java.io.BufferedReader br, java.lang.String url)
RandomIndexedComic
getPreviousStripId
in class RandomIndexedComic
br
- reader for the current strip's url connectionurl
- current strip's url
protected int parseForLatestId(java.io.BufferedReader reader) throws ComicLatestException, java.io.IOException
IndexedComic
parseForLatestId
in class IndexedComic
reader
- reader from which to parse for latest id
ComicLatestException
java.io.IOException
public java.lang.String getStripUrlFromId(int num)
IndexedComic
getStripUrlFromId
in class IndexedComic
num
- the comic-id
protected int getIdFromStripUrl(java.lang.String url)
IndexedComic
getIdFromStripUrl
in class IndexedComic
url
- comic url
protected java.lang.String getFrontPageUrl()
IndexedComic
getFrontPageUrl
in class IndexedComic
public java.lang.String getComicWebPageUrl()
Comic
getComicWebPageUrl
in class Comic
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 int parseForPrevId(java.lang.String line, int def)
RandomIndexedComic
parseForPrevId
in class RandomIndexedComic
line
- line of interestdef
- default value to be returned
protected int parseForNextId(java.lang.String line, int def)
RandomIndexedComic
parseForNextId
in class RandomIndexedComic
line
- line of interestdef
- default value to be returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |