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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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.