public abstract class CharactersetEncoder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CharactersetEncoder.EncodedChars
A container for encoded character bytes
|
Modifier and Type | Method and Description |
---|---|
static CharactersetEncoder.EncodedChars |
encodeSBCS(java.lang.CharSequence chars,
java.lang.String encoding)
Encodes
chars into a format specified by encoding . |
public static CharactersetEncoder.EncodedChars encodeSBCS(java.lang.CharSequence chars, java.lang.String encoding) throws java.nio.charset.CharacterCodingException
chars
into a format specified by encoding
.chars
- the character sequenceencoding
- the encoding typejava.nio.charset.CharacterCodingException
- if encoding failsCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.