play.server.hybi10
Class Base64

java.lang.Object
  extended by play.server.hybi10.Base64

public class Base64
extends java.lang.Object

Encodes binary data to plain text as Base64. Despite there being a gazillion other Base64 implementations out there, this has been written as part of XStream as it forms a core part but is too trivial to warrant an extra dependency. This meets the standard as described in RFC 1521, section 5.2 , allowing other Base64 tools to manipulate the data. This code originally came from the XStream http://xstream.codehaus.org project by Joe Walnes. Relicensed to Webbit.


Constructor Summary
Base64()
           
 
Method Summary
static byte[] decode(java.lang.String input)
           
static java.lang.String encode(byte[] input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64

public Base64()
Method Detail

encode

public static java.lang.String encode(byte[] input)

decode

public static byte[] decode(java.lang.String input)


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly