Class Utf8HttpWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable

    public class Utf8HttpWriter
    extends HttpWriter
    OutputWriter. A writer that can wrap a HttpOutput stream and provide character encodings. The UTF-8 encoding is done by this class and no additional buffers or Writers are used. The UTF-8 code was inspired by http://javolution.org
    • Field Summary

      • Fields inherited from class java.io.Writer

        lock
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(char[] s, int offset, int length)  
      • Methods inherited from class java.io.Writer

        append, append, append, nullWriter, write, write, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utf8HttpWriter

        public Utf8HttpWriter​(HttpOutput out)
    • Method Detail

      • write

        public void write​(char[] s,
                          int offset,
                          int length)
                   throws java.io.IOException
        Overrides:
        write in class HttpWriter
        Throws:
        java.io.IOException