Class WithDefaultCharset


  • public abstract class WithDefaultCharset
    extends Object
    A small utility class to let one change current JVM encoding to run encoding specific tests. This implementation checks for new encoding and tries to reset encoding back if possible.
    Since:
    7.1
    Author:
    Eugene Petrenko (eugene.petrenko@gmail.com) Date: 29.05.12 18:32
    • Constructor Detail

      • WithDefaultCharset

        public WithDefaultCharset​(@NotNull
                                  String newEncoding)
                           throws Throwable
        Creates charset updater
        Parameters:
        newEncoding - encoding to set
        Throws:
        Throwable - on error
    • Method Detail

      • doUnderEncoding

        protected abstract void doUnderEncoding()
                                         throws Throwable
        This method is called with updated encoding
        Throws:
        Throwable