| |
|
| java.lang.Object de.java2html.Java2Html
Java2Html | public class Java2Html (Code) | | A convenience class providing methods to use the Java2Html converter. By using this class you
will not have the ability to benefit from all the features of the Java2Html converter library.
However for most standard use cases the methods here will fit your needs.
|
Method Summary | |
public static String | convertToHtml(String javaSource) Converts the given String containing Java source code to HTML
by using the standard options of the converter.
Will return null if an error occures.
The result itself does not have <html> and </html> tags and so
can be embedded in any HTML page.
Parameters: javaSource - The Java source code as plain text. | public static String | convertToHtml(String javaSource, JavaSourceConversionSettings settings) Converts the given String containing Java source code to HTML
by using the given options for the converter.
Will return null if an error occures.
The result itself does not have <html> and </html> tags and so
can be embedded in any HTML page.
Parameters: javaSource - The Java source code as plain text. Parameters: settings - conversion options or null to use the standard options A HTML representation of the Java source code or null if an error occures. | public static String | convertToHtml(String text, JavaSourceConversionOptions options) | public static String | convertToHtmlPage(String javaSource) Converts the given String containing Java source code to a complete
HTML page by using the standard options of the converter.
Will return null if an error occures.
Parameters: javaSource - The Java source code as plain text. | public static String | convertToHtmlPage(String javaSource, JavaSourceConversionSettings settings) Converts the given String containing Java source code to a complete
HTML page by using the given options for the converter.
Will return null if an error occures.
Parameters: javaSource - The Java source code as plain text. Parameters: settings - conversion options or null to use the standard options A HTML representation of the Java source code or null if an error occures. | public static String | convertToHtmlPage(String text, JavaSourceConversionOptions options) | public static void | main(String[] args) The commandline conversion from
Java2HtmlCommandline
can be invoked by running this class. |
convertToHtml | public static String convertToHtml(String javaSource)(Code) | | Converts the given String containing Java source code to HTML
by using the standard options of the converter.
Will return null if an error occures.
The result itself does not have <html> and </html> tags and so
can be embedded in any HTML page.
Parameters: javaSource - The Java source code as plain text. A HTML representation of the Java source code or null if an error occures. See Also: Java2Html.convertToHtml(String,JavaSourceConversionOptions) See Also: See Also: Java2Html.convertToHtmlPage(String) |
|
|
|