public class EncodingUtilities extends Object
Constructor and Description |
---|
EncodingUtilities(String codepage) |
Modifier and Type | Method and Description |
---|---|
String |
getEncoding() |
byte[] |
getEncodingHeader() |
byte[] |
getHeader() |
byte[] |
getSpace() |
void |
writeEncodedText(char[] textString,
OutputStream out)
Writes encoded text for the current encoding into the output stream.
|
void |
writeEncodedText(String textString,
OutputStream out)
Writes encoded text for the current encoding into the output stream.
|
public EncodingUtilities(String codepage) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] getSpace()
public byte[] getHeader()
public void writeEncodedText(char[] textString, OutputStream out) throws IOException
textString
- the text that should be written.IOException
- if an error occures.public void writeEncodedText(String textString, OutputStream out) throws IOException
textString
- the text that should be written.IOException
- if an error occures.public String getEncoding()
public byte[] getEncodingHeader()