de.goerntkai.scot.app.document
Class ContentDocument

java.lang.Object
  extended byde.goerntkai.scot.app.document.SCoTDocument
      extended byde.goerntkai.scot.app.document.ContentDocument

public class ContentDocument
extends SCoTDocument

Represents a file which is found in ./contents and listed in content.order.

Author:
Kai Görnt

Constructor Summary
ContentDocument(java.lang.String path, Configuration aConfiguration)
          Instantiates one standard SCoT content file.
 
Method Summary
 SCoTBlock[] getContent()
          Returns the content as an array of SCoTBlocks.
 
Methods inherited from class de.goerntkai.scot.app.document.SCoTDocument
getBlocks, getConfiguration, getLine, getLines, getLines, getLines, getReference, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentDocument

public ContentDocument(java.lang.String path,
                       Configuration aConfiguration)
                throws java.io.FileNotFoundException
Instantiates one standard SCoT content file.

Parameters:
path - path and name of the file
aConfiguration - the configuration of this application
Throws:
java.io.FileNotFoundException
Method Detail

getContent

public SCoTBlock[] getContent()
                       throws java.io.FileNotFoundException

Returns the content as an array of SCoTBlocks. The content consists of the filename as HTML anchor and the content itself following.

TODO comment me TODO test me

Returns:
array of SCoTBlocks
Throws:
java.io.FileNotFoundException


© 2004 by Kai Görnt