public class RelayDescriptorParser
extends java.lang.Object
Constructor and Description |
---|
RelayDescriptorParser(ArchiveWriter aw)
Initializes this class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
parse(byte[] data)
Parses the given bytes to find out the contained descriptor type,
forwards them to the archive writer to store them to disk, and tells
the relay descriptor downloader and archive reader about the
contained descriptor and all referenced descriptors.
|
void |
setArchiveReader(ArchiveReader ar) |
void |
setRelayDescriptorDownloader(RelayDescriptorDownloader rdd) |
void |
storeMicrodescriptor(byte[] data,
java.lang.String digest256Hex,
java.lang.String digest256Base64,
long validAfter)
Forwards the given microdescriptor to the archive writer to store
it to disk and tells the relay descriptor downloader that this
microdescriptor is not missing anymore.
|
public RelayDescriptorParser(ArchiveWriter aw)
public void setRelayDescriptorDownloader(RelayDescriptorDownloader rdd)
public void setArchiveReader(ArchiveReader ar)
public boolean parse(byte[] data)
public void storeMicrodescriptor(byte[] data, java.lang.String digest256Hex, java.lang.String digest256Base64, long validAfter)