de.java2html.converter
Class JavaSource2HTMLConverter

java.lang.Object
  extended by de.java2html.converter.AbstractJavaSourceConverter
      extended by de.java2html.converter.JavaSource2HTMLConverter
All Implemented Interfaces:
IJavaSourceConverter

public class JavaSource2HTMLConverter
extends AbstractJavaSourceConverter

Algorithm and stuff for converting a JavaSource object to to a HTML string representation. The result is XHTML1.0 Transitional compliant. For questions, suggestions, bug-reports, enhancement-requests etc. I may be contacted at: markus@jave.de The Java2html home page is located at: http://www.java2html.de


Field Summary
static boolean java2HtmlHomepageLinkEnabled
          Deprecated. As of Jan 2, 2004 (Markus Gebhard) replaced by JavaSourceConversionOptions.setShowJava2HtmlLink(boolean)
 
Constructor Summary
JavaSource2HTMLConverter()
           
 
Method Summary
 void convert(JavaSource source, JavaSourceConversionOptions options, java.io.BufferedWriter writer)
           
 java.lang.String getBlockSeparator(JavaSourceConversionOptions options)
          Returns the code that has to be placed between two blocks of converted code.
 java.lang.String getDocumentFooter(JavaSourceConversionOptions options)
          Returns a footer for the result document.
 java.lang.String getDocumentHeader(JavaSourceConversionOptions options, java.lang.String title)
          Returns a header for the result document.
 
Methods inherited from class de.java2html.converter.AbstractJavaSourceConverter
convert, getDefaultFileExtension, getMetaData, writeBlockSeparator, writeDocumentFooter, writeDocumentHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

java2HtmlHomepageLinkEnabled

public static boolean java2HtmlHomepageLinkEnabled
Deprecated. As of Jan 2, 2004 (Markus Gebhard) replaced by JavaSourceConversionOptions.setShowJava2HtmlLink(boolean)
Flag indication whether html output contains a link to the Java2Html-Homepage or not.

Constructor Detail

JavaSource2HTMLConverter

public JavaSource2HTMLConverter()
Method Detail

getDocumentHeader

public java.lang.String getDocumentHeader(JavaSourceConversionOptions options,
                                          java.lang.String title)
Description copied from class: AbstractJavaSourceConverter
Returns a header for the result document. This one will be placed before the first block of converted code. Subclasses can return an empty String ("") if there is none neccessary.

Specified by:
getDocumentHeader in class AbstractJavaSourceConverter

getDocumentFooter

public java.lang.String getDocumentFooter(JavaSourceConversionOptions options)
Description copied from class: AbstractJavaSourceConverter
Returns a footer for the result document. This one will be placed behind the last block of converted code. Subclasses can return an empty String ("") if there is none neccessary.

Specified by:
getDocumentFooter in class AbstractJavaSourceConverter

getBlockSeparator

public java.lang.String getBlockSeparator(JavaSourceConversionOptions options)
Description copied from class: AbstractJavaSourceConverter
Returns the code that has to be placed between two blocks of converted code. Subclasses can return an empty String ("") if there is none neccessary.

Specified by:
getBlockSeparator in class AbstractJavaSourceConverter

convert

public void convert(JavaSource source,
                    JavaSourceConversionOptions options,
                    java.io.BufferedWriter writer)
             throws java.io.IOException
Specified by:
convert in class AbstractJavaSourceConverter
Throws:
java.io.IOException