Class UTF8Output


  • public final class UTF8Output
    extends java.lang.Object
    Utility class which allows to extract a UTF8 String from bytes respecting valid code-points
    • Constructor Summary

      Constructors 
      Constructor Description
      UTF8Output()  
      UTF8Output​(java.nio.ByteBuffer... payload)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String extract()
      Extract a String holding the utf8 text
      boolean hasData()  
      void write​(java.nio.ByteBuffer... bytes)  
      • Methods inherited from class java.lang.Object

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

      • UTF8Output

        public UTF8Output​(java.nio.ByteBuffer... payload)
      • UTF8Output

        public UTF8Output()
    • Method Detail

      • write

        public void write​(java.nio.ByteBuffer... bytes)
      • extract

        public java.lang.String extract()
        Extract a String holding the utf8 text
      • hasData

        public boolean hasData()