infoservice.tor
Class DummyORListFetcher

java.lang.Object
  extended by infoservice.tor.DummyORListFetcher
All Implemented Interfaces:
ORListFetcher

public class DummyORListFetcher
extends java.lang.Object
implements ORListFetcher

This is a dummy implementation of the ORListFetcher interface. It is used by the TorDirectoryAgent of the infoservice, when a already downloaded TOR nodes list structure shall be parsed.


Field Summary
private  byte[] m_torNodesListStructure
          Stores the raw TOR nodes list, which shall be parsed.
 
Constructor Summary
DummyORListFetcher(byte[] a_torNodesListStructure)
          Creates a new DummyORListFetcher.
 
Method Summary
 byte[] getORList()
          Returns the stored raw TOR nodes list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_torNodesListStructure

private byte[] m_torNodesListStructure
Stores the raw TOR nodes list, which shall be parsed.

Constructor Detail

DummyORListFetcher

public DummyORListFetcher(byte[] a_torNodesListStructure)
Creates a new DummyORListFetcher. This simply stores the specified raw TOR nodes list for later parsing.

Parameters:
a_torNodesListStructure - The raw TOR nodes list, which shall be parsed later.
Method Detail

getORList

public byte[] getORList()
Returns the stored raw TOR nodes list.

Specified by:
getORList in interface ORListFetcher
Returns:
The raw TOR nodes list specified in the constructor.