org.springframework.security.core.codec
Class Utf8

java.lang.Object
  extended by org.springframework.security.core.codec.Utf8

public final class Utf8
extends Object

UTF-8 Charset encoder/decoder.

For internal use only.


Constructor Summary
Utf8()
           
 
Method Summary
static String decode(byte[] bytes)
          Decode the bytes in UTF-8 form into a String.
static byte[] encode(CharSequence string)
          Get the bytes of the String in UTF-8 encoded form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utf8

public Utf8()
Method Detail

encode

public static byte[] encode(CharSequence string)
Get the bytes of the String in UTF-8 encoded form.


decode

public static String decode(byte[] bytes)
Decode the bytes in UTF-8 form into a String.