Class OutputConverter


  • public class OutputConverter
    extends java.lang.Object
    A converter from one character type to another

    This class is not threadsafe

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  OutputConverter.ResinWriter
      To get internationalised characters to work on Resin, some conversions need to take place.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String WORK_AROUND_RESIN_I18N_BUG
      Resin versions 2.1.12 and previously have encoding problems for internationalisation.
    • Constructor Summary

      Constructors 
      Constructor Description
      OutputConverter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String convert​(java.lang.String inputString)  
      static java.io.Writer getWriter​(java.io.Writer out)  
      private static void resinConvert​(java.lang.String inputString, java.io.Writer writer)  
      • Methods inherited from class java.lang.Object

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

      • WORK_AROUND_RESIN_I18N_BUG

        public static final java.lang.String WORK_AROUND_RESIN_I18N_BUG
        Resin versions 2.1.12 and previously have encoding problems for internationalisation.

        This is fixed in Resin 2.1.13. Once 2.1.13 is used more widely, this parameter (and class) can be removed.

        See Also:
        Constant Field Values
    • Constructor Detail

      • OutputConverter

        public OutputConverter()
    • Method Detail

      • getWriter

        public static java.io.Writer getWriter​(java.io.Writer out)
      • convert

        public static java.lang.String convert​(java.lang.String inputString)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • resinConvert

        private static void resinConvert​(java.lang.String inputString,
                                         java.io.Writer writer)
                                  throws java.io.IOException
        Throws:
        java.io.IOException