Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.logging.log4j.core.config.plugins.convert
Class TypeConverters.CharsetConverter

    java.lang.Object
      org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.CharsetConverter

All Implemented Interfaces:
  TypeConverter<Charset>

Enclosing class:
  TypeConverters

    @Plugin(name="Charset",
            category="TypeConverter")
    public static class TypeConverters.CharsetConverter

extends Object
implements TypeConverter<Charset>

Converts a `String` into a `Charset`.

Constructor Summary
`TypeConverters.CharsetConverter()`

Method Summary
`Charset` | `convert(String s)` Converts a String to a given type.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TypeConverters.CharsetConverter

    public TypeConverters.CharsetConverter()

Method Detail

### convert

    public Charset convert(String s)

  Description copied from interface: `TypeConverter`
  Converts a String to a given type.

  Specified by:
    `convert` in interface `TypeConverter<Charset>`
  Parameters:
    `s` - the String to convert. Cannot be `null`.
  Returns:
    the converted object.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.