net.sf.tomp.highlight.html
Class JavaSource2HTMLConverter
java.lang.Object
de.java2html.converter.JavaSourceConverter
net.sf.tomp.highlight.html.JavaSource2HTMLConverter
- All Implemented Interfaces:
- de.java2html.converter.IJavaSourceConverter
- public class JavaSource2HTMLConverter
- extends de.java2html.converter.JavaSourceConverter
This class is heavily based on work of Markus Gebhard, see the copyright
notice below. It was taken and changed by Tomas Pitner, tomp@fi.muni.cz, July
28, 2004. The purpose is to produce a syntax-highlighted version of a Java
source code.
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
- Author:
- Markus Gebhard Copyright (C)
Markus Gebhard 2000-2002 This program is free software; you can
redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version. This
program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details. You should have received a
copy of the GNU General Public License along with this program; if
not, write to the Free Software Foundation, Inc., 59 Temple Place -
Suite 330, Boston, MA 02111-1307, USA.
Field Summary |
static boolean |
java2HtmlHomepageLinkEnabled
Deprecated. As of Jan 2, 2004 (Markus Gebhard) replaced by
Java2HtmlConversionOptions.setShowJava2HtmlLink(boolean) |
Fields inherited from class de.java2html.converter.JavaSourceConverter |
source |
Methods inherited from class de.java2html.converter.JavaSourceConverter |
convert, convert, getColorTable, getConversionOptions, setConversionOptions, setSource, writeBlockSeparator, writeDocumentFooter, writeDocumentHeader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
java2HtmlHomepageLinkEnabled
public static boolean java2HtmlHomepageLinkEnabled
- Deprecated. As of Jan 2, 2004 (Markus Gebhard) replaced by
Java2HtmlConversionOptions.setShowJava2HtmlLink(boolean)
- Flag indication whether html output contains a link to the
Java2Html-Homepage or not.
JavaSource2HTMLConverter
public JavaSource2HTMLConverter()
JavaSource2HTMLConverter
public JavaSource2HTMLConverter(de.java2html.javasource.JavaSource source)
convert
public void convert(java.io.BufferedWriter writer)
throws java.io.IOException
- Throws:
java.io.IOException
getBlockSeparator
public java.lang.String getBlockSeparator()
getDefaultFileExtension
public java.lang.String getDefaultFileExtension()
getDocumentFooter
public java.lang.String getDocumentFooter()
getDocumentHeader
public java.lang.String getDocumentHeader()
toHTML
protected void toHTML(de.java2html.javasource.JavaSourceRun run,
java.io.BufferedWriter writer)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2004 Masaryk University in Brno, Faculty of Informatics, Czech Republic. All Rights Reserved.