Class EncodingPreservingStreamWriter


  • public class EncodingPreservingStreamWriter
    extends Object
    This stream writer is used to write single and double byte encoded input streams and additionally sets the correct Byte Order.
    • Constructor Detail

      • EncodingPreservingStreamWriter

        public EncodingPreservingStreamWriter​(ImageOutputStream out,
                                              String encoding)
        This stream writer is used to write single and double byte encoded input streams and additionally sets the correct Byte Order.
    • Method Detail

      • write

        public void write​(int ch)
                   throws IOException
        This method allows to write characters to the image output stream.
        Parameters:
        ch - the character that shall be written.
        Throws:
        IOException - - If data couldn't be written.