hcrypto.analyzer.tool
Class EnglishFacts

java.lang.Object
  extended by hcrypto.analyzer.CryptoAnalyzer
      extended by hcrypto.analyzer.tool.EnglishFacts
All Implemented Interfaces:
Analyzer, java.lang.Runnable

public class EnglishFacts
extends CryptoAnalyzer
implements Analyzer

Displays some general facts about English text. This analyzer does not parse the specific text being analyzed.


Field Summary
 
Fields inherited from class hcrypto.analyzer.CryptoAnalyzer
PERMUTATION, PLAYFAIR, RAILFENCE, SIMPLESUB
 
Fields inherited from interface hcrypto.analyzer.Analyzer
DECIPHER_LIMIT
 
Constructor Summary
EnglishFacts()
           
EnglishFacts(AnalyzerFrame f)
          Constructor for use with CryptoToolJ
 
Method Summary
 java.lang.String getReport()
          getResult() is part of Analyzer interface.
 void run()
          run() is part of Analyzer interface.
 void setup(java.lang.String text)
          setup() is part of Analyzer interface.
 java.lang.String toString()
          toString() returns the result
 
Methods inherited from class hcrypto.analyzer.CryptoAnalyzer
prettyPrint, setup, stopThread, threadIsStopped
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnglishFacts

public EnglishFacts()

EnglishFacts

public EnglishFacts(AnalyzerFrame f)
Constructor for use with CryptoToolJ

Parameters:
f - the frame that displays the results
Method Detail

setup

public void setup(java.lang.String text)
setup() is part of Analyzer interface. It passes in the pointer to the text to be analyzed.

Specified by:
setup in interface Analyzer
Overrides:
setup in class CryptoAnalyzer

run

public void run()
run() is part of Analyzer interface. It performs the analysis.

Specified by:
run in interface Analyzer
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class CryptoAnalyzer

getReport

public java.lang.String getReport()
getResult() is part of Analyzer interface. It returns the result as a string.

Specified by:
getReport in interface Analyzer
Overrides:
getReport in class CryptoAnalyzer

toString

public java.lang.String toString()
toString() returns the result

Overrides:
toString in class CryptoAnalyzer