Interface Text

    • Method Summary

      Modifier and Type Method and Description
      BytesReference bytes()
      The UTF8 bytes representing the the text, might be converted on the fly, see hasBytes()
      boolean hasBytes()
      Are bytes available without the need to be converted into bytes when calling bytes().
      boolean hasString()
      Is there a String representation of the text.
      String string()
      Returns the string representation of the text, might be converted to a string on the fly.
      String toString()
      Returns the string representation of the text, might be converted to a string on the fly.
    • Method Detail

      • hasBytes

        boolean hasBytes()
        Are bytes available without the need to be converted into bytes when calling bytes().
      • hasString

        boolean hasString()
        Is there a String representation of the text. If not, then it hasBytes().
      • string

        String string()
        Returns the string representation of the text, might be converted to a string on the fly.
      • toString

        String toString()
        Returns the string representation of the text, might be converted to a string on the fly.