|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.java2html.Java2Html
public class Java2Html
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 | |
---|---|
static java.lang.String |
convertToHtml(java.lang.String javaSource)
Converts the given String containing Java source code to HTML
by using the standard options of the converter. |
static java.lang.String |
convertToHtml(java.lang.String text,
JavaSourceConversionOptions options)
|
static java.lang.String |
convertToHtml(java.lang.String javaSource,
JavaSourceConversionSettings settings)
Converts the given String containing Java source code to HTML
by using the given options for the converter. |
static java.lang.String |
convertToHtmlPage(java.lang.String javaSource)
Converts the given String containing Java source code to a complete
HTML page by using the standard options of the converter. |
static java.lang.String |
convertToHtmlPage(java.lang.String text,
JavaSourceConversionOptions options)
|
static java.lang.String |
convertToHtmlPage(java.lang.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. |
static void |
main(java.lang.String[] args)
The commandline conversion from Java2HtmlCommandline
can be invoked by running this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String convertToHtml(java.lang.String javaSource)
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.
javaSource
- The Java source code as plain text.
null
if an error occures.convertToHtml(String, JavaSourceConversionOptions)
,
convertToHtmlPage(String)
public static java.lang.String convertToHtml(java.lang.String javaSource, JavaSourceConversionSettings settings)
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.
javaSource
- The Java source code as plain text.settings
- conversion options or null
to use the standard options
null
if an error occures.convertToHtml(String)
,
convertToHtmlPage(String, JavaSourceConversionSettings)
public static java.lang.String convertToHtmlPage(java.lang.String javaSource)
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.
javaSource
- The Java source code as plain text.
null
if an error occures.convertToHtmlPage(String, JavaSourceConversionSettings)
,
convertToHtml(String)
public static java.lang.String convertToHtmlPage(java.lang.String javaSource, JavaSourceConversionSettings settings)
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.
javaSource
- The Java source code as plain text.settings
- conversion options or null
to use the standard options
null
if an error occures.convertToHtmlPage(String)
,
convertToHtmlPage(String, JavaSourceConversionSettings)
public static void main(java.lang.String[] args)
Java2HtmlCommandline
can be invoked by running this class.
public static java.lang.String convertToHtml(java.lang.String text, JavaSourceConversionOptions options)
public static java.lang.String convertToHtmlPage(java.lang.String text, JavaSourceConversionOptions options)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |