org.qi4j.io
Class Transforms.ByteBuffer2String

java.lang.Object
  extended by org.qi4j.io.Transforms.ByteBuffer2String
All Implemented Interfaces:
Function<java.nio.ByteBuffer,java.lang.String>
Enclosing class:
Transforms

public static class Transforms.ByteBuffer2String
extends java.lang.Object
implements Function<java.nio.ByteBuffer,java.lang.String>

Convert ByteBuffers to Strings using the given CharSet


Constructor Summary
Transforms.ByteBuffer2String(java.nio.charset.Charset charSet)
           
 
Method Summary
 java.lang.String map(java.nio.ByteBuffer buffer)
          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.ByteBuffer2String

public Transforms.ByteBuffer2String(java.nio.charset.Charset charSet)
Method Detail

map

public java.lang.String map(java.nio.ByteBuffer buffer)
Description copied from interface: Function
Map a single item from one type to another

Specified by:
map in interface Function<java.nio.ByteBuffer,java.lang.String>
Parameters:
buffer - the input item
Returns:
the mapped item