net.metanotion.io.data

## Class UTF8StringBytes

- java.lang.Object
- - net.metanotion.io.data.UTF8StringBytes

- All Implemented Interfaces:
    Serializer<String>

      public class UTF8StringBytes
      extends Object
      implements Serializer<String>

  String serializer using UTF-8 encoding.

  Converts between String objects and UTF-8 byte arrays. Supports full Unicode character set for internationalized text.

  UTF-8 encoding characteristics:

  - ASCII characters (U+0000 to U+007F) use 1 byte
  - Latin characters with diacritics (U+0080 to U+07FF) use 2 bytes
  - Most common characters including CJK (U+0800 to U+FFFF) use 3 bytes
  - Astral plane characters (U+10000 to U+10FFFF) use 4 bytes

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UTF8StringBytes()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `construct(byte[] b)`
    `byte[]` | `getBytes(String o)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### UTF8StringBytes

          public UTF8StringBytes()

  - ### Method Detail

    - #### construct

          public String construct(byte[] b)

      Specified by:
        `construct` in interface `Serializer<String>`

    - #### getBytes

          public byte[] getBytes(String o)

      Specified by:
        `getBytes` in interface `Serializer<String>`