Class EncodingUtilities


  • public class EncodingUtilities
    extends Object
    • Method Detail

      • getSpace

        public byte[] getSpace()
      • getHeader

        public byte[] getHeader()
      • writeEncodedText

        public void writeEncodedText​(char[] textString,
                                     OutputStream out)
                              throws IOException
        Writes encoded text for the current encoding into the output stream.
        Parameters:
        textString - the text that should be written.
        Throws:
        IOException - if an error occures.
      • writeEncodedText

        public void writeEncodedText​(String textString,
                                     OutputStream out)
                              throws IOException
        Writes encoded text for the current encoding into the output stream.
        Parameters:
        textString - the text that should be written.
        Throws:
        IOException - if an error occures.
      • getEncoding

        public String getEncoding()
      • getEncodingHeader

        public byte[] getEncodingHeader()