com.nexwave.nquindexer
Class WriteJSFiles

java.lang.Object
  extended by com.nexwave.nquindexer.WriteJSFiles

public class WriteJSFiles
extends Object

Outputs the js files with: - the list of html files and their description - the words retrieved from the html files and their location

Version:
2.0 2010-08-13
Author:
N. Quaine, Kasun Gajasinghe

Constructor Summary
WriteJSFiles()
           
 
Method Summary
static void WriteHTMLInfoList(String fileO, ArrayList<DocFileInfo> list)
          Create a javascript array listing the html files with their paths relative to project root, their titles and shortdescs
static void WriteHTMLList(String fileO, ArrayList<String> list)
          Create a javascript array listing the html files with their paths relative to the project root
static void WriteIndex(String fileOutStr, Map<String,?> indexMap)
          Create javascript index files alphabetically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteJSFiles

public WriteJSFiles()
Method Detail

WriteHTMLList

public static void WriteHTMLList(String fileO,
                                 ArrayList<String> list)
Create a javascript array listing the html files with their paths relative to the project root

Parameters:
fileO - path and name of the file in which to output the list of html files
list - of the html files, relative to the doc root directory

WriteHTMLInfoList

public static void WriteHTMLInfoList(String fileO,
                                     ArrayList<DocFileInfo> list)
Create a javascript array listing the html files with their paths relative to project root, their titles and shortdescs

Parameters:
fileO - path and name of the file in which to output the list of html files
list - of the html files, relative to the doc root directory

WriteIndex

public static void WriteIndex(String fileOutStr,
                              Map<String,?> indexMap)
Create javascript index files alphabetically.

Parameters:
fileOutStr - contains the path and the suffix of the index files to create. The first letter of the key is added to the given suffix. For example: e.g. a.js, b.js etc...
indexMap - its keys are the indexed words and its values are the list of the files which contain the word.


Copyright © 2013. All Rights Reserved.