public final class AsciidocTools
extends java.lang.Object
| Constructor and Description | 
|---|
| AsciidocTools() | 
| Modifier and Type | Method and Description | 
|---|---|
| static org.asciidoctor.Asciidoctor | getDOCTOR() | 
| static java.lang.String | nodeToString(org.asciidoctor.ast.StructuralNode node)Returns the relevant information of a StructuralNode of a StructuredDocument. | 
| static <V> org.asciidoctor.ast.Document | parseFileToDocument(V file)Parses an AsciiDoc file into a StructuredDocument. | 
| static <V> org.asciidoctor.ast.Document | parseFileToDocument(V file,
                   org.asciidoctor.Options options)Parses an AsciiDoc file into a StructuredDocument. | 
| static <V> java.lang.String | parseFileToHTML(V srcFile)Parses an AsciiDoc file to HTML output. | 
| static <V> java.lang.String | parseFileToHTML(V srcFile,
               org.asciidoctor.Options options)Parses an AsciiDoc file to HTML output. | 
| static <V> java.lang.String | parseFileToHTML(V srcFile,
               org.asciidoctor.Options options,
               V outFile)Parses an AsciiDoc file to HTML output. | 
| static <V> void | parseFileToPDF(V srcFile,
              org.asciidoctor.Options options,
              V outFile)Parses an AsciiDoc file into a PDF File. | 
| static <V> java.lang.String | parseFileWithBackend(V srcFile,
                    org.asciidoctor.Options options)Converts an AsciiDoc file with a backend set in the 'options'. | 
| static <V> java.lang.String | parseFileWithBackend(V srcFile,
                    org.asciidoctor.Options options,
                    V outFile)Converts an AsciiDoc file with a backend set in the 'options'. | 
| static org.asciidoctor.ast.Document | parseStringToDocument(java.lang.String content)Parses an AsciiDoc string into a StructuredDocument. | 
| static org.asciidoctor.ast.Document | parseStringToDocument(java.lang.String content,
                     org.asciidoctor.Options options)Parses an AsciiDoc string into a StructuredDocument. | 
| static java.lang.String | parseStringToHTML(java.lang.String content)Parses an AsciiDoc string to HTML output. | 
| static java.lang.String | parseStringToHTML(java.lang.String content,
                 org.asciidoctor.Options options)Parses an AsciiDoc string to HTML output. | 
| static <V> java.lang.String | parseStringToHTML(java.lang.String content,
                 org.asciidoctor.Options options,
                 V outFile)Parses an AsciiDoc string to HTML output. | 
| static <V> void | parseStringToPDF(java.lang.String content,
                org.asciidoctor.Options options,
                V outFile)Parses an AsciiDoc string into a PDF File. | 
| static java.lang.String | parseStringWithBackend(java.lang.String content,
                      org.asciidoctor.Options options)Converts an AsciiDoc string with a backend set in the 'options'. | 
| static <V> java.lang.String | parseStringWithBackend(java.lang.String content,
                      org.asciidoctor.Options options,
                      V outFile)Converts an AsciiDoc string with a backend set in the 'options'. | 
public static org.asciidoctor.Asciidoctor getDOCTOR()
public static final <V> org.asciidoctor.ast.Document parseFileToDocument(V file)
file - File, Path, or path as Stringpublic static final <V> org.asciidoctor.ast.Document parseFileToDocument(V file,
                                                                         org.asciidoctor.Options options)
file - File, Path, or path as Stringoptions - Options for parsingpublic static final org.asciidoctor.ast.Document parseStringToDocument(java.lang.String content)
content - AsciiDoc content as a stringpublic static final org.asciidoctor.ast.Document parseStringToDocument(java.lang.String content,
                                                                       org.asciidoctor.Options options)
content - AsciiDoc content as a stringoptions - Options for parsingpublic static final java.lang.String nodeToString(org.asciidoctor.ast.StructuralNode node)
node - StructuralNode to convert to stringpublic static final <V> java.lang.String parseFileToHTML(V srcFile)
srcFile - AsciiDoc source filepublic static final <V> java.lang.String parseFileToHTML(V srcFile,
                                                         org.asciidoctor.Options options)
srcFile - AsciiDoc source fileoptions - Options for parsingpublic static final <V> java.lang.String parseFileToHTML(V srcFile,
                                                         org.asciidoctor.Options options,
                                                         V outFile)
srcFile - AsciiDoc source fileoptions - Options for parsingoutFile - Output file for HTML contentpublic static final java.lang.String parseStringToHTML(java.lang.String content)
content - AsciiDoc content as a stringpublic static final java.lang.String parseStringToHTML(java.lang.String content,
                                                       org.asciidoctor.Options options)
content - AsciiDoc content as a stringoptions - Options for parsingpublic static final <V> java.lang.String parseStringToHTML(java.lang.String content,
                                                           org.asciidoctor.Options options,
                                                           V outFile)
content - AsciiDoc content as a stringoptions - Options for parsingoutFile - Output file for HTML contentpublic static final <V> void parseFileToPDF(V srcFile,
                                            org.asciidoctor.Options options,
                                            V outFile)
srcFile - AsciiDoc source fileoptions - Options for parsingoutFile - Output file for PDF contentpublic static final <V> void parseStringToPDF(java.lang.String content,
                                              org.asciidoctor.Options options,
                                              V outFile)
content - AsciiDoc content as a stringoptions - Options for parsingoutFile - Output file for PDF contentpublic static final <V> java.lang.String parseFileWithBackend(V srcFile,
                                                              org.asciidoctor.Options options)
srcFile - AsciiDoc source fileoptions - Options for parsingpublic static final <V> java.lang.String parseFileWithBackend(V srcFile,
                                                              org.asciidoctor.Options options,
                                                              V outFile)
srcFile - AsciiDoc source fileoptions - Options for parsingoutFile - Output file for converted contentpublic static final java.lang.String parseStringWithBackend(java.lang.String content,
                                                            org.asciidoctor.Options options)
content - AsciiDoc content as a stringoptions - Options for parsingpublic static final <V> java.lang.String parseStringWithBackend(java.lang.String content,
                                                                org.asciidoctor.Options options,
                                                                V outFile)
content - AsciiDoc content as a stringoptions - Options for parsingoutFile - Output file for converted contentCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.