de.java2html.converter
Class AbstractJavaSourceToXmlConverter
java.lang.Object
de.java2html.converter.AbstractJavaSourceConverter
de.java2html.converter.AbstractJavaSourceToXmlConverter
- All Implemented Interfaces:
- IJavaSourceConverter
- Direct Known Subclasses:
- JavaSource2Xhtml11Converter, JavaSource2XhtmlConverter, JavaSource2XmlConverter
public abstract class AbstractJavaSourceToXmlConverter
- extends AbstractJavaSourceConverter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_HEADER
protected static final java.lang.String XML_HEADER
- See Also:
- Constant Field Values
lineNumbers
protected boolean lineNumbers
pre
protected boolean pre
lineEnd
protected java.lang.String lineEnd
AbstractJavaSourceToXmlConverter
public AbstractJavaSourceToXmlConverter(ConverterMetaData metaData)
setOptions
public void setOptions(boolean lineNumbers,
boolean pre)
- Deprecated. As of Sep 13, 2004 (Markus Gebhard) Only options in the
Java2HtmlConversionOptions are available
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
createHeader
protected abstract java.lang.String createHeader(JavaSourceStyleTable styleTable,
java.lang.String title)
getHeaderEnd
protected abstract java.lang.String getHeaderEnd()
getFooter
protected abstract java.lang.String getFooter()
createStyleSheet
protected static java.lang.String createStyleSheet(JavaSourceStyleTable styleTable)
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
toXml
protected void toXml(java.lang.String sourceCode,
JavaSourceType[] sourceTypes,
int start,
int end,
java.io.BufferedWriter writer)
throws java.io.IOException
- Throws:
java.io.IOException