Package com.yahoo.text
Class Ascii
- java.lang.Object
-
- com.yahoo.text.Ascii
-
public class Ascii extends java.lang.Object
- Author:
- Simon Thoresen Hult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Ascii.Decoder
static class
Ascii.Encoder
-
Field Summary
Fields Modifier and Type Field Description static char
ESCAPE_CHAR
-
Constructor Summary
Constructors Constructor Description Ascii()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
decode(java.lang.String str, java.nio.charset.Charset charset)
static java.lang.String
encode(java.lang.String str, java.nio.charset.Charset charset, int... requiresEscape)
static Ascii.Decoder
newDecoder(java.nio.charset.Charset charset)
static Ascii.Encoder
newEncoder(java.nio.charset.Charset charset, int... requiresEscape)
-
-
-
Field Detail
-
ESCAPE_CHAR
public static final char ESCAPE_CHAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public static java.lang.String encode(java.lang.String str, java.nio.charset.Charset charset, int... requiresEscape)
-
decode
public static java.lang.String decode(java.lang.String str, java.nio.charset.Charset charset)
-
newEncoder
public static Ascii.Encoder newEncoder(java.nio.charset.Charset charset, int... requiresEscape)
-
newDecoder
public static Ascii.Decoder newDecoder(java.nio.charset.Charset charset)
-
-