hcrypto.analyzer
Class Dictionary

java.lang.Object
  |
  +--hcrypto.analyzer.Dictionary

public class Dictionary
extends java.lang.Object


Constructor Summary
Dictionary()
           
Dictionary(java.lang.String filename, boolean linebreaks)
          This constructor creates a dictionary from the named file.
 
Method Summary
 boolean contains(java.lang.String word)
           
static void main(java.lang.String[] args)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dictionary

public Dictionary()

Dictionary

public Dictionary(java.lang.String filename,
                  boolean linebreaks)
This constructor creates a dictionary from the named file. If linebreaks is true, it assumes the words are listed one per line. Otherwise, it assumes words are listed several per line.
Parameters:
filename - a String giving the name of the dictionary file
linebreaks - set to true iff the words are listed one per line
Method Detail

contains

public boolean contains(java.lang.String word)

size

public int size()

main

public static void main(java.lang.String[] args)