Package net.i2p.i2ptunnel.access
Class FilterDefinitionElement
- java.lang.Object
-
- net.i2p.i2ptunnel.access.FilterDefinitionElement
-
- Direct Known Subclasses:
ExplicitFilterDefinitionElement
,FileFilterDefinitionElement
abstract class FilterDefinitionElement extends Object
Base class for elements found in filter definition files- Since:
- 0.9.40
-
-
Constructor Summary
Constructors Constructor Description FilterDefinitionElement(Threshold threshold)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static Hash
fromBase32(String b32)
Utility method to create a Hash object from a .b32 string(package private) Threshold
getThreshold()
(package private) abstract void
update(Map<Hash,DestTracker> map)
Updates the provided map with the hash(es) of remote destinations mentioned in this element
-
-
-
Field Detail
-
threshold
protected final Threshold threshold
-
-
Constructor Detail
-
FilterDefinitionElement
FilterDefinitionElement(Threshold threshold)
-
-
Method Detail
-
update
abstract void update(Map<Hash,DestTracker> map) throws IOException
Updates the provided map with the hash(es) of remote destinations mentioned in this element- Throws:
IOException
-
getThreshold
Threshold getThreshold()
-
fromBase32
protected static Hash fromBase32(String b32) throws InvalidDefinitionException
Utility method to create a Hash object from a .b32 string- Throws:
InvalidDefinitionException
-
-