public class ScroogeXHTML extends ScroogeXHTMLMain
convert method in
ScroogeXHTMLMain.| Constructor and Description |
|---|
ScroogeXHTML() |
| Modifier and Type | Method and Description |
|---|---|
String |
convert(ByteArrayInputStream rtf)
Convert RTF input stream to XHTML / HTML string.
|
String |
convert(File rtfFile)
Convert RTF file to XHTML / HTML string.
|
void |
convert(File rtfFile,
File outFile)
Convert RTF file to XHTML / HTML file, using UTF-8 output encoding.
|
void |
convert(File rtfFile,
File outFile,
Charset charset)
Convert RTF file to XHTML / HTML file, using the specified output
charset.
|
String |
convert(String rtf)
Convert RTF string to XHTML / HTML string, using UTF-8 output format.
|
String |
convert(String rtf,
Charset charset)
Convert RTF string to XHTML / HTML string, using the specified output
charset.
|
void |
convert(String inRtf,
File outFile)
Convert RTF string and write the result to the given file, using UTF-8
output format.
|
void |
convert(String inRtf,
File outFile,
Charset charset)
Convert RTF string and write the result to the given file, using the
specified output charset.
|
addDefaultListenersaddPostProcessListener, getDefaultFontColor, getDefaultFontName, getDefaultFontSize, getDefaultLanguage, getDocumentTitle, getDocumentType, getFieldExpression, getFontReplacing, getFontSizeUnit, getFontStatistics, getIndentAmount, getMetaAuthor, getMetaDescription, getMetaGenerator, getMetaKeywords, getMetaViewport, getOutputProperties, getOutputProperty, getPictureAdapter, getPostProcessListeners, getReplaceFonts, getStyleSheetInclude, getStyleSheetLinks, getTabString, getVersion, isAddOuterHTML, isConvertAlignment, isConvertBookmarks, isConvertEmptyParagraphs, isConvertFields, isConvertFontBGColor, isConvertFontColor, isConvertFontHLColor, isConvertFontName, isConvertFontSize, isConvertFontStyle, isConvertFootnotes, isConvertHyperlinks, isConvertIndent, isConvertLanguage, isConvertPictures, isConvertTables, isIncludeDefaultFontStyle, nameAndVersion, removePostProcessListener, setAddOuterHTML, setConvertAlignment, setConvertBookmarks, setConvertEmptyParagraphs, setConvertFields, setConvertFontBGColor, setConvertFontColor, setConvertFontHLColor, setConvertFontName, setConvertFontSize, setConvertFontStyle, setConvertFootnotes, setConvertHyperlinks, setConvertIndent, setConvertLanguage, setConvertPictures, setConvertTables, setDefaultFontColor, setDefaultFontName, setDefaultFontSize, setDefaultLanguage, setDocumentTitle, setDocumentType, setFontReplacing, setFontSizeUnit, setFontStatistics, setIncludeDefaultFontStyle, setIndentAmount, setMetaAuthor, setMetaDescription, setMetaGenerator, setMetaKeywords, setMetaViewport, setOutputProperty, setPictureAdapter, setStyleSheetInclude, setStyleSheetLink, setTabStringpublic String convert(String rtf, Charset charset)
rtf - the input RTF stringcharset - the output charsetRuntimeException - If an IOException occurs in the internal
methods, it will be logged and a RuntimeException will be thrown.public String convert(String rtf)
rtf - the input RTF stringRuntimeException - If an IOException occurs in the internal
methods, it will be logged and a RuntimeException will be thrown.public void convert(File rtfFile, File outFile, Charset charset) throws IOException
rtfFile - the RTF fileoutFile - the HTML/XHTML filecharset - the output file encodingIOException - conversion errorpublic void convert(File rtfFile, File outFile) throws IOException
rtfFile - the RTF fileoutFile - the output fileIOException - conversion errorpublic void convert(String inRtf, File outFile, Charset charset) throws IOException
inRtf - the RTF input codeoutFile - the output filecharset - the output charsetIOException - conversion errorpublic void convert(String inRtf, File outFile) throws IOException
inRtf - the RTF input codeoutFile - the output file, UTF-8 encodedIOException - conversion errorpublic String convert(File rtfFile) throws IOException
rtfFile - the input RTF fileIOException - conversion errorpublic String convert(ByteArrayInputStream rtf)
rtf - The byte array input streamRuntimeException - If an IOException occurs in the internal
methods, it will be logged and a RuntimeException will be thrown.Copyright © 2019 Habarisoft. All rights reserved.