Class TextsProvider
java.lang.Object
net.sourceforge.jnlp.util.docprovider.TextsProvider
- Direct Known Subclasses:
IcedTeaWebTextsProvider, ItwebPluginTextProvider, ItwebSettingsTextsProvider, JavaWsTextsProvider, PolicyEditorTextsProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate static Stringprivate static final intstatic final Stringprivate final Charsetprotected final booleanprivate final booleanprivate final Formatterprivate static final Stringstatic final Stringprivate static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprivate static final Stringstatic final Stringstatic final Stringprivate static final Stringprivate static final Stringprivate booleanprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionTextsProvider(Charset encoding, Formatter formatter, boolean forceTitles, boolean expandFiles) -
Method Summary
Modifier and TypeMethodDescriptionprivate static longcopy(InputStream from, OutputStream to) private static voidgenerateAll(File f, boolean expand) private StringgenerateAuthorsSection(String authors) private static voidgenerateHtmlTexts(File dir, boolean includeXmlHeader, boolean expand) private static voidgenerateHtmlTexts(File dir, boolean allowContext, boolean allowLogo, boolean includeXmlHeader, boolean titles, boolean expand) private static voidgenerateHtmlTextsUtf8(File dir, boolean includeXmlHeader, boolean expand) private static voidgenerateItwIntro(File f, boolean expand) private static voidgenerateManText(Charset encoding, File dir, boolean expand) private static voidgenerateManText(Charset encoding, File dir, boolean titles, boolean expand) private static voidgenerateOnlineHtmlHelp(File f, boolean expand) private static voidgeneratePlainTextDocs(File dir, int lineWidth, boolean expand) private static voidgeneratePlainTextDocs(Charset encoding, File dir, int lineWidth, boolean expand) static voidprivate Stringprivate StringgetBugs()private CharsetgetFiles()protected StringgetFiles(List<InfrastructureFileDescriptor> files) protected Stringprivate Stringabstract StringgetId()private Stringprivate StringgetTail()private booleanstatic voidprotected booleanprotected Stringprepare()(package private) StringreadAuthors(String authors) (package private) StringreadAuthorsImpl(String authors) private Stringprivate voidsetAuthorFilePath(String authorFilePath) voidsetSeeAlso(boolean seeAlso) private voidwriteToDir(File dir) voidwriteToFile(File f) private voidprivate Stringprivate void
-
Field Details
-
authorsLine
-
encoding
-
formatter
-
forceTitles
private final boolean forceTitles -
expandVariables
protected final boolean expandVariables -
prepared
private boolean prepared -
authorLineImpl
-
seeAlso
private boolean seeAlso -
IT_NEW_HOME
- See Also:
-
IT_BASE
- See Also:
-
ITW_HOME
- See Also:
-
ITW_EAS
- See Also:
-
ITW_STYLE
- See Also:
-
ITW_ECLIPSE
- See Also:
-
ITW_REPO
- See Also:
-
ITW
- See Also:
-
ITW_PLUGIN
- See Also:
-
DISTRO_PKG
- See Also:
-
IT_MAIN
- See Also:
-
IT_QUICK
- See Also:
-
ITW_ISSUES
- See Also:
-
ITW_REPRODUCERS
- See Also:
-
ITW_BUGS
- See Also:
-
ITW_PLUGIN_URL
- See Also:
-
ITW_BUGZILLAHOME
- See Also:
-
logo_name
- See Also:
-
logo_url
- See Also:
-
BUF_SIZE
private static final int BUF_SIZE- See Also:
-
-
Constructor Details
-
TextsProvider
-
-
Method Details
-
getId
-
getHeader
-
getTail
-
getIntroduction
-
getSynopsis
-
getDescription
-
getOptions
-
getCommands
-
getExamples
-
getFiles
-
getFilesAppendix
-
getFiles
-
matchStringsValueWithInfrastructureFile
protected boolean matchStringsValueWithInfrastructureFile(Setting entry, InfrastructureFileDescriptor f) -
getFormatter
-
getEncoding
-
optionsToString
-
getBugs
-
getAuthors
-
getSeeAlso
-
prepare
-
writeToString
-
writeToStringReal
-
writeToWriter
- Throws:
IOException
-
writeToStream
- Throws:
IOException
-
writeToFile
- Throws:
IOException
-
writeToDir
- Throws:
IOException
-
main
- Throws:
IOException
-
generateItwIntro
- Throws:
IOException
-
generateAll
- Throws:
IOException
-
generateRuntimeHtmlTexts
- Throws:
IOException
-
generateOnlineHtmlHelp
- Throws:
IOException
-
generateHtmlTexts
private static void generateHtmlTexts(File dir, boolean includeXmlHeader, boolean expand) throws IOException - Throws:
IOException
-
generateHtmlTextsUtf8
private static void generateHtmlTextsUtf8(File dir, boolean includeXmlHeader, boolean expand) throws IOException - Throws:
IOException
-
generateHtmlTexts
private static void generateHtmlTexts(File dir, boolean allowContext, boolean allowLogo, boolean includeXmlHeader, boolean titles, boolean expand) throws IOException - Throws:
IOException
-
generateManText
- Throws:
IOException
-
generateManText
private static void generateManText(Charset encoding, File dir, boolean titles, boolean expand) throws IOException - Throws:
IOException
-
generatePlainTextDocs
private static void generatePlainTextDocs(File dir, int lineWidth, boolean expand) throws IOException - Throws:
IOException
-
generatePlainTextDocs
private static void generatePlainTextDocs(Charset encoding, File dir, int lineWidth, boolean expand) throws IOException - Throws:
IOException
-
copy
- Throws:
IOException
-
setAuthorFilePath
-
isSeeAlso
private boolean isSeeAlso()- Returns:
- the seeAlso
-
setSeeAlso
public void setSeeAlso(boolean seeAlso) - Parameters:
seeAlso- the seeAlso to set
-
removeFileProtocol
-
readAuthors
-
readAuthorsImpl
- Throws:
IOException
-
generateAuthorsSection
-