Class BridgeDescriptorParser
java.lang.Object
org.torproject.metrics.collector.bridgedescs.BridgeDescriptorParser
public class BridgeDescriptorParser
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description BridgeDescriptorParser(SanitizedBridgesWriter sbw)
Initializes a new bridge descriptor parser and links it to a sanitized bridges writer to sanitize and store bridge descriptors. -
Method Summary
Modifier and Type Method Description void
parse(byte[] allData, java.lang.String dateTime, java.lang.String authorityFingerprint)
Parses the first line of the given descriptor data to determine the descriptor type and passes it to the sanitized bridges writer.
-
Constructor Details
-
BridgeDescriptorParser
Initializes a new bridge descriptor parser and links it to a sanitized bridges writer to sanitize and store bridge descriptors.
-
-
Method Details
-
parse
public void parse(byte[] allData, java.lang.String dateTime, java.lang.String authorityFingerprint)Parses the first line of the given descriptor data to determine the descriptor type and passes it to the sanitized bridges writer.
-