Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.greenstone.gatherer.util
Class Generator  view Generator download Generator.java

java.lang.Object
  extended byorg.greenstone.gatherer.util.Generator

public class Generator
extends java.lang.Object

Automatically generates html help documents given an input text file using markup and a template defining what the markup means.

Version:
1.0

Nested Class Summary
private  class Generator.HTMLBlock
          An HTML block object is essentially a String buffer containing several places where it demands further text be appended.
private  class Generator.SourceManager
          Reads in the given text file, outputing HTML by utilizing HTML blocks stored in the TemplateManager.
private  class Generator.TemplateManager
          Reads in a template file, extracting HTMLBlocks and storing them.
 
Field Summary
private  java.io.FileOutputStream file_output_stream
           
private  Generator.TemplateManager template_manager
           
 
Constructor Summary
Generator(java.io.File test_file, java.io.File template_file)
           
 
Method Summary
 void exit()
           
static void main(java.lang.String[] args)
           
 void out(java.lang.String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file_output_stream

private java.io.FileOutputStream file_output_stream

template_manager

private Generator.TemplateManager template_manager
Constructor Detail

Generator

public Generator(java.io.File test_file,
                 java.io.File template_file)
Method Detail

exit

public void exit()

out

public void out(java.lang.String msg)

main

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