Class I18N.Writer

  • Enclosing class:
    I18N

    static final class I18N.Writer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Writer​(java.nio.charset.Charset encoding, boolean publicVisibility, License license, boolean useMessageFormat, java.util.Set<java.lang.String> suppressWarnings)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.String getLicenseCopyrightHolder()  
      (package private) java.lang.String getLicenseCopyrightYear()  
      (package private) java.lang.String getLicenseText​(java.lang.String fileName)  
      (package private) void write​(I18N.Node i18n, java.lang.String bundleName, java.lang.String i18nClassName, java.io.File outputDir)  
      private void write​(java.lang.String templateName, java.util.Map<java.lang.String,​java.lang.Object> root, java.io.File file)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • configuration

        private final freemarker.template.Configuration configuration
      • encoding

        private final java.nio.charset.Charset encoding
      • publicVisibility

        private final boolean publicVisibility
      • license

        private final License license
      • useMessageFormat

        private final boolean useMessageFormat
      • suppressWarnings

        private final java.util.Set<java.lang.String> suppressWarnings
    • Constructor Detail

      • Writer

        Writer​(java.nio.charset.Charset encoding,
               boolean publicVisibility,
               License license,
               boolean useMessageFormat,
               java.util.Set<java.lang.String> suppressWarnings)
    • Method Detail

      • write

        void write​(I18N.Node i18n,
                   java.lang.String bundleName,
                   java.lang.String i18nClassName,
                   java.io.File outputDir)
            throws java.io.IOException
        Throws:
        java.io.IOException
      • getLicenseText

        java.lang.String getLicenseText​(java.lang.String fileName)
      • getLicenseCopyrightYear

        java.lang.String getLicenseCopyrightYear()
      • getLicenseCopyrightHolder

        java.lang.String getLicenseCopyrightHolder()
      • write

        private void write​(java.lang.String templateName,
                           java.util.Map<java.lang.String,​java.lang.Object> root,
                           java.io.File file)
                    throws java.io.IOException
        Throws:
        java.io.IOException