public class HTML extends Encoding
| Constructor and Description |
|---|
HTML() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(InputStream in,
Buffer out)
Decode an input stream into a buffer.
|
String |
encode(byte[] in)
Encode a byte array to a ASCII or ISO-8859-1 String.
|
String |
encode(String str)
Encode a (UTF-8) String to a ASCII or ISO-8859-1 String.
|
String |
getName()
Returns the name of this encoding.
|
public void decode(InputStream in, Buffer out) throws DecodingException
Encodingdecode in class Encodingin - the input stream to read data fromout - the buffer to write decoded data toDecodingException - if decoding failsEncoding.decode(byte[], int, int)public String encode(byte[] in) throws EncodingException
Encodingencode in class Encodingin - the byte array to encodeEncodingException - if encoding failspublic String encode(String str) throws EncodingException
Encodingencode in class Encodingstr - the string to encodeEncodingException - if encoding failsEncoding.encode(byte[])