public final class CharsetEncoders extends Object
CharsetEncoder.| Modifier and Type | Method and Description |
|---|---|
static CharsetEncoder |
toCharsetEncoder(CharsetEncoder charsetEncoder)
Returns the given non-null CharsetEncoder or a new default CharsetEncoder.
|
static CharsetEncoder |
toCharsetEncoder(CharsetEncoder charsetEncoder,
Supplier<CharsetEncoder> defaultSupplier)
Returns the given non-null CharsetEncoder or a new default CharsetEncoder.
|
public static CharsetEncoder toCharsetEncoder(CharsetEncoder charsetEncoder)
charsetEncoder - The CharsetEncoder to test.public static CharsetEncoder toCharsetEncoder(CharsetEncoder charsetEncoder, Supplier<CharsetEncoder> defaultSupplier)
charsetEncoder - The CharsetEncoder to test.defaultSupplier - The CharsetEncoder supplier to get when charsetEncoder is null.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.