Class TextsProvider

    • Constructor Detail

      • TextsProvider

        public TextsProvider​(java.nio.charset.Charset encoding,
                             Formatter formatter,
                             boolean forceTitles,
                             boolean expandFiles)
    • Method Detail

      • getId

        public abstract java.lang.String getId()
      • getHeader

        private java.lang.String getHeader()
      • getTail

        private java.lang.String getTail()
      • getIntroduction

        public java.lang.String getIntroduction()
      • getSynopsis

        public java.lang.String getSynopsis()
      • getDescription

        public java.lang.String getDescription()
      • getOptions

        public java.lang.String getOptions()
      • getCommands

        public java.lang.String getCommands()
      • getExamples

        public java.lang.String getExamples()
      • getFiles

        public java.lang.String getFiles()
      • getFilesAppendix

        protected java.lang.String getFilesAppendix()
      • getFormatter

        public Formatter getFormatter()
      • getEncoding

        private java.nio.charset.Charset getEncoding()
      • optionsToString

        protected java.lang.String optionsToString​(java.util.List<CommandLineOptions> opts)
      • getBugs

        private java.lang.String getBugs()
      • getAuthors

        private java.lang.String getAuthors()
      • getSeeAlso

        private java.lang.String getSeeAlso()
      • writeToString

        public java.lang.String writeToString()
      • writeToStringReal

        private java.lang.String writeToStringReal()
      • writeToWriter

        private void writeToWriter​(java.io.Writer w)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • writeToStream

        private void writeToStream​(java.io.OutputStream os)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • writeToFile

        public void writeToFile​(java.io.File f)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeToDir

        private void writeToDir​(java.io.File dir)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • generateItwIntro

        private static void generateItwIntro​(java.io.File f,
                                             boolean expand)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • generateAll

        private static void generateAll​(java.io.File f,
                                        boolean expand)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • generateRuntimeHtmlTexts

        public static void generateRuntimeHtmlTexts​(java.io.File f)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • generateOnlineHtmlHelp

        private static void generateOnlineHtmlHelp​(java.io.File f,
                                                   boolean expand)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • generateHtmlTexts

        private static void generateHtmlTexts​(java.io.File dir,
                                              boolean includeXmlHeader,
                                              boolean expand)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • generateHtmlTextsUtf8

        private static void generateHtmlTextsUtf8​(java.io.File dir,
                                                  boolean includeXmlHeader,
                                                  boolean expand)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • generateHtmlTexts

        private static void generateHtmlTexts​(java.io.File dir,
                                              boolean allowContext,
                                              boolean allowLogo,
                                              boolean includeXmlHeader,
                                              boolean titles,
                                              boolean expand)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • generateManText

        private static void generateManText​(java.nio.charset.Charset encoding,
                                            java.io.File dir,
                                            boolean expand)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • generateManText

        private static void generateManText​(java.nio.charset.Charset encoding,
                                            java.io.File dir,
                                            boolean titles,
                                            boolean expand)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • generatePlainTextDocs

        private static void generatePlainTextDocs​(java.io.File dir,
                                                  int lineWidth,
                                                  boolean expand)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • generatePlainTextDocs

        private static void generatePlainTextDocs​(java.nio.charset.Charset encoding,
                                                  java.io.File dir,
                                                  int lineWidth,
                                                  boolean expand)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • copy

        private static long copy​(java.io.InputStream from,
                                 java.io.OutputStream to)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • setAuthorFilePath

        private void setAuthorFilePath​(java.lang.String authorFilePath)
      • isSeeAlso

        private boolean isSeeAlso()
        Returns:
        the seeAlso
      • setSeeAlso

        public void setSeeAlso​(boolean seeAlso)
        Parameters:
        seeAlso - the seeAlso to set
      • removeFileProtocol

        private java.lang.String removeFileProtocol​(java.lang.String s)
      • readAuthors

        java.lang.String readAuthors​(java.lang.String authors)
      • readAuthorsImpl

        java.lang.String readAuthorsImpl​(java.lang.String authors)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • generateAuthorsSection

        private java.lang.String generateAuthorsSection​(java.lang.String authors)