org.qi4j.io

## Class Transforms.String2Bytes

- java.lang.Object
- - org.qi4j.io.Transforms.String2Bytes

- All Implemented Interfaces:
    Function<String,byte[]>
  Enclosing class:
    Transforms

      public static class Transforms.String2Bytes
      extends Object
      implements Function<String,byte[]>

  Convert strings to bytes using the given CharSet

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Transforms.String2Bytes(Charset charSet)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `map(String s)` Map a single item from one type to another

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

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

- - ### Constructor Detail

    - #### Transforms.String2Bytes

          public Transforms.String2Bytes(Charset charSet)

  - ### Method Detail

    - #### map

          public byte[] map(String s)

      Description copied from interface: `Function`
      Map a single item from one type to another
      Specified by:
        `map` in interface `Function<String,byte[]>`
      Parameters:
        `s` - the input item
      Returns:
        the mapped item