Package com.yahoo.io

Class Utf8ByteWriter

    • Constructor Detail

      • Utf8ByteWriter

        public Utf8ByteWriter​(int initialBuffer)
    • Method Detail

      • send

        public void send​(java.nio.ByteBuffer src)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in class java.io.Writer
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class java.io.Writer
        Throws:
        java.io.IOException
      • getBuf

        public java.nio.ByteBuffer getBuf()
        Return a buffer ready for read. Must only be called after writer has been closed.
        Returns:
        A flipped ByteBuffer