be.lassi.web
Class DocBuilder
java.lang.Object
be.lassi.web.PageBuilder
be.lassi.web.DocBuilder
- Direct Known Subclasses:
- JavadocBuilder, ManualBuilder, TestDocBuilder
public abstract class DocBuilder
- extends PageBuilder
Constructor Summary |
protected |
DocBuilder(java.lang.String sourceDir,
java.lang.String targetDir)
Constructs a new instance. |
Method Summary |
protected void |
exclude(java.lang.String filename)
Adds a file to the list of files that should not get the logo and
the navigation bar at the top. |
void |
process()
Processes the files. |
protected void |
processLine(Page page,
java.lang.String string)
Processes html file line, insert LASSI navigation bar when
correct location found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocBuilder
protected DocBuilder(java.lang.String sourceDir,
java.lang.String targetDir)
- Constructs a new instance.
- Parameters:
sourceDir
- the directory with the html pages to be changedtargetDir
- the directory with the html pages after change
exclude
protected void exclude(java.lang.String filename)
- Adds a file to the list of files that should not get the logo and
the navigation bar at the top.
- Parameters:
filename
- the name of the file to be added to the list
process
public void process()
throws java.io.IOException
- Processes the files.
- Throws:
java.io.IOException
- if problem with reading or writing the files
processLine
protected void processLine(Page page,
java.lang.String string)
- Processes html file line, insert LASSI navigation bar when
correct location found.
- Parameters:
out
- output filefile
- source filestring
- the line to be processed