1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 02:09:35 +02:00

code unification between library & network library (in progress)

This commit is contained in:
Nikolay Pultsin 2011-07-15 20:49:22 +01:00
parent f0a082c3f9
commit 3130b83204
26 changed files with 40 additions and 50 deletions

View file

@ -28,6 +28,7 @@ import org.geometerplus.zlibrary.core.network.ZLNetworkManager;
import org.geometerplus.zlibrary.core.network.ZLNetworkException;
import org.geometerplus.zlibrary.core.network.ZLNetworkRequest;
import org.geometerplus.zlibrary.core.language.ZLLanguageUtil;
import org.geometerplus.zlibrary.core.resources.ZLResource;
import org.geometerplus.fbreader.tree.FBTree;
import org.geometerplus.fbreader.network.tree.*;
@ -44,6 +45,10 @@ public class NetworkLibrary {
return ourInstance;
}
public static ZLResource resource() {
return ZLResource.resource("networkLibrary");
}
private static class LinksComparator implements Comparator<INetworkLink> {
private static String filterLinkTitle(String title) {
for (int index = 0; index < title.length(); ++index) {