Package com.biglybt.core.ipfilter.impl
Class IpFilterAutoLoaderImpl
java.lang.Object
com.biglybt.core.ipfilter.impl.IpFilterAutoLoaderImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
(package private) static final AEMonitor
(package private) final IpFilterImpl
(package private) static final LogIDs
private Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
downloadFiltersAsync
(URL url, boolean v6) private int
private void
Load dat filter as specified at http://wiki.phoenixlabs.org/wiki/DAT_Formatprivate boolean
loadIPv4
(boolean allowAsyncDownloading, boolean loadOldWhileAsyncDownloading, List<IpRangeImpl> new_ipRanges) private boolean
loadIPv6
(boolean allowAsyncDownloading, boolean loadOldWhileAsyncDownloading, List<IpRangeImpl> new_ipRanges) protected void
loadOtherFilters
(boolean allowAsyncDownloading, boolean loadOldWhileAsyncDownloading) private String
readString
(BufferedInputStream bin, byte[] descBytes, String encoding) private void
void
setNextAutoDownload
(boolean updateLastDownloadedDate)
-
Field Details
-
LOGID
-
CFG_AUTOLOAD_LAST
- See Also:
-
class_mon
-
timerEventFilterReload
-
ipFilter
-
-
Constructor Details
-
IpFilterAutoLoaderImpl
-
-
Method Details
-
loadDATFilters
Load dat filter as specified at http://wiki.phoenixlabs.org/wiki/DAT_Format- Parameters:
fin
-- Throws:
Exception
- Since:
- 3.0.1.5
-
getP2BFileVersion
-
loadOtherFilters
protected void loadOtherFilters(boolean allowAsyncDownloading, boolean loadOldWhileAsyncDownloading) -
loadIPv4
private boolean loadIPv4(boolean allowAsyncDownloading, boolean loadOldWhileAsyncDownloading, List<IpRangeImpl> new_ipRanges) -
loadIPv6
private boolean loadIPv6(boolean allowAsyncDownloading, boolean loadOldWhileAsyncDownloading, List<IpRangeImpl> new_ipRanges) -
setFileReloadTimer
private void setFileReloadTimer()- Since:
- 3.0.1.5
-
downloadFiltersAsync
- Parameters:
url
-- Since:
- 3.0.1.5
-
setNextAutoDownload
public void setNextAutoDownload(boolean updateLastDownloadedDate) -
readString
- Parameters:
bin
-descBytes
-encoding
-- Returns:
- Since:
- 3.0.1.5
-