public class EncodingUtil extends Object
Modifier and Type | Field and Description |
---|---|
static Charset |
CHARSET_EIGHT_BIT_ENCODING
Predefined Charset for 8-Bit encoding.
|
static String |
EIGHT_BIT_ENCODING
Constant for 8-Bit encoding, which can be resembled by "ISO-8859-1"
|
Modifier and Type | Method and Description |
---|---|
static InputStream |
toStream(String content,
Charset charset)
Converts the string of given content to an input stream.
|
public static final String EIGHT_BIT_ENCODING
public static final Charset CHARSET_EIGHT_BIT_ENCODING
public static InputStream toStream(String content, Charset charset)
content
- the string content.charset
- the charset for conversion.Copyright © 2006–2017 Icegreen Technologies. All rights reserved.