org.qi4j.api.io
Class Transforms.String2Bytes

java.lang.Object
  extended by org.qi4j.api.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
Transforms.String2Bytes(Charset charSet)
           
 
Method Summary
 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