Java Code Examples for com.hippo.yorozuya.StringUtils#endsWith()
The following examples show how to use
com.hippo.yorozuya.StringUtils#endsWith() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpiderQueen.java From EhViewer with Apache License 2.0 | 5 votes |
private GalleryPageParser.Result fetchPageResultFromHtml(int index, String pageUrl) throws Throwable { GalleryPageParser.Result result = EhEngine.getGalleryPage(null, mHttpClient, pageUrl, mGalleryInfo.gid, mGalleryInfo.token); if (StringUtils.endsWith(result.imageUrl, URL_509_SUFFIX_ARRAY)) { // Get 509 // Notify listeners notifyGet509(index); throw new Image509Exception(); } return result; }
Example 2
Source File: SpiderQueen.java From EhViewer with Apache License 2.0 | 5 votes |
private GalleryPageApiParser.Result fetchPageResultFromApi(long gid, int index, String pToken, String showKey, String previousPToken) throws Throwable { GalleryPageApiParser.Result result = EhEngine.getGalleryPageApi(null, mHttpClient, gid, index, pToken, showKey, previousPToken); if (StringUtils.endsWith(result.imageUrl, URL_509_SUFFIX_ARRAY)) { // Get 509 // Notify listeners notifyGet509(index); throw new Image509Exception(); } return result; }