pt.tumba.ngram
Class ProfileWriter

java.lang.Object
  extended by pt.tumba.ngram.ProfileWriter

public class ProfileWriter
extends java.lang.Object

Write an N-Gram profile to disk. A Profile stores N-gram frequency information for a given textual string.

Author:
Bruno Martins

Field Summary
private static ProfileWriter _theInstance
          The single instance of this Singleton class.
 
Constructor Summary
private ProfileWriter()
          Sole constructor of ProfileWriter.
 
Method Summary
static ProfileWriter getInstance()
          Returns an instance of this class.
static void main(java.lang.String[] args)
          The main method for the ProfileWriter class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_theInstance

private static final ProfileWriter _theInstance
The single instance of this Singleton class.

Constructor Detail

ProfileWriter

private ProfileWriter()
Sole constructor of ProfileWriter.

Method Detail

getInstance

public static ProfileWriter getInstance()
Returns an instance of this class.

Returns:
An instance of ProfileWriter.

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
The main method for the ProfileWriter class.

Parameters:
args - The command line arguments, tokenized.
Throws:
java.io.IOException - A problem occurred while processing files.