public enum AdvancedByteBufFormat extends java.lang.Enum<AdvancedByteBufFormat>
ByteBufs and ByteBufHolders.
Adds TEXTUAL format to io.netty.handler.logging.ByteBufFormat.| Modifier and Type | Method and Description |
|---|---|
io.netty.handler.logging.LoggingHandler |
toLoggingHandler(java.lang.String category,
io.netty.handler.logging.LogLevel level,
java.nio.charset.Charset charset)
Creates the matching LoggingHandler regarding the format.
|
static AdvancedByteBufFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AdvancedByteBufFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdvancedByteBufFormat SIMPLE
public static final AdvancedByteBufFormat HEX_DUMP
public static final AdvancedByteBufFormat TEXTUAL
public static AdvancedByteBufFormat[] values()
for (AdvancedByteBufFormat c : AdvancedByteBufFormat.values()) System.out.println(c);
public static AdvancedByteBufFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic io.netty.handler.logging.LoggingHandler toLoggingHandler(java.lang.String category,
io.netty.handler.logging.LogLevel level,
java.nio.charset.Charset charset)
category - the logger categorylevel - the logger levelcharset - the charset (only relevant for TEXTUAL)LoggingHandler reference