- java.lang.Object
-
- io.netty5.util.CharsetUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CharsetDecoderdecoder(Charset charset)Returns a cached thread-localCharsetDecoderfor the specifiedCharset.static CharsetDecoderdecoder(Charset charset, CodingErrorAction codingErrorAction)Returns a newCharsetDecoderfor theCharsetwith the specified error action.static CharsetDecoderdecoder(Charset charset, CodingErrorAction malformedInputAction, CodingErrorAction unmappableCharacterAction)Returns a newCharsetDecoderfor theCharsetwith specified error actions.static CharsetEncoderencoder(Charset charset)Returns a cached thread-localCharsetEncoderfor the specifiedCharset.static CharsetEncoderencoder(Charset charset, CodingErrorAction codingErrorAction)Returns a newCharsetEncoderfor theCharsetwith the specified error action.static CharsetEncoderencoder(Charset charset, CodingErrorAction malformedInputAction, CodingErrorAction unmappableCharacterAction)Returns a newCharsetEncoderfor theCharsetwith specified error actions.static CharsetDecodergetDecoder(Charset charset)Deprecated.Usedecoder(Charset).static CharsetEncodergetEncoder(Charset charset)Deprecated.Useencoder(Charset).
-
-
-
Method Detail
-
getEncoder
@Deprecated public static CharsetEncoder getEncoder(Charset charset)
Deprecated.Useencoder(Charset).
-
encoder
public static CharsetEncoder encoder(Charset charset, CodingErrorAction malformedInputAction, CodingErrorAction unmappableCharacterAction)
Returns a newCharsetEncoderfor theCharsetwith specified error actions.- Parameters:
charset- The specified charsetmalformedInputAction- The encoder's action for malformed-input errorsunmappableCharacterAction- The encoder's action for unmappable-character errors- Returns:
- The encoder for the specified
charset
-
encoder
public static CharsetEncoder encoder(Charset charset, CodingErrorAction codingErrorAction)
Returns a newCharsetEncoderfor theCharsetwith the specified error action.- Parameters:
charset- The specified charsetcodingErrorAction- The encoder's action for malformed-input and unmappable-character errors- Returns:
- The encoder for the specified
charset
-
encoder
public static CharsetEncoder encoder(Charset charset)
Returns a cached thread-localCharsetEncoderfor the specifiedCharset.- Parameters:
charset- The specified charset- Returns:
- The encoder for the specified
charset
-
getDecoder
@Deprecated public static CharsetDecoder getDecoder(Charset charset)
Deprecated.Usedecoder(Charset).
-
decoder
public static CharsetDecoder decoder(Charset charset, CodingErrorAction malformedInputAction, CodingErrorAction unmappableCharacterAction)
Returns a newCharsetDecoderfor theCharsetwith specified error actions.- Parameters:
charset- The specified charsetmalformedInputAction- The decoder's action for malformed-input errorsunmappableCharacterAction- The decoder's action for unmappable-character errors- Returns:
- The decoder for the specified
charset
-
decoder
public static CharsetDecoder decoder(Charset charset, CodingErrorAction codingErrorAction)
Returns a newCharsetDecoderfor theCharsetwith the specified error action.- Parameters:
charset- The specified charsetcodingErrorAction- The decoder's action for malformed-input and unmappable-character errors- Returns:
- The decoder for the specified
charset
-
decoder
public static CharsetDecoder decoder(Charset charset)
Returns a cached thread-localCharsetDecoderfor the specifiedCharset.- Parameters:
charset- The specified charset- Returns:
- The decoder for the specified
charset
-
-