Package org.torproject.descriptor
Interface GeoipFile
-
- All Superinterfaces:
Descriptor
,java.io.Serializable
public interface GeoipFile extends Descriptor
A GeoIP file contains information about the geographical (country code) and topological (autonomous system) location of an IP address.- Since:
- 2.16.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
GeoipFile.GeoipEntry
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EOL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<GeoipFile.GeoipEntry>
getEntries()
java.util.Optional<GeoipFile.GeoipEntry>
getEntry(java.net.InetAddress forAddress)
-
Methods inherited from interface org.torproject.descriptor.Descriptor
getAnnotations, getDescriptorFile, getRawDescriptorBytes, getRawDescriptorLength, getUnrecognizedLines
-
-
-
-
Field Detail
-
EOL
static final java.lang.String EOL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntries
java.util.List<GeoipFile.GeoipEntry> getEntries()
-
getEntry
java.util.Optional<GeoipFile.GeoipEntry> getEntry(java.net.InetAddress forAddress)
-
-