com.buck.common.codec
Class Base64URL

java.lang.Object
  extended by com.buck.common.codec.Codec
      extended by com.buck.common.codec.Base64URL
All Implemented Interfaces:
Comparable<Codec>

public class Base64URL
extends Codec

Codec for RFC 4648 Base64 URL Safe.

This implementation does not encode/decode streaming data. You need the data that you will encode/decode already on a byte arrray.

Author:
Robert J. Buck

Constructor Summary
Base64URL()
           
 
Method Summary
protected static boolean isBase64(byte octect)
           
 CodecDecoder newDecoder()
          Constructs a new decoder for this codec.
 CodecEncoder newEncoder()
          Constructs a new encoder for this codec.
 
Methods inherited from class com.buck.common.codec.Codec
aliases, availableCodecs, compareTo, equals, forName, hashCode, isSupported, name
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64URL

public Base64URL()
Method Detail

isBase64

protected static boolean isBase64(byte octect)

newDecoder

public CodecDecoder newDecoder()
Description copied from class: Codec
Constructs a new decoder for this codec.

Specified by:
newDecoder in class Codec
Returns:
A new decoder for this codec

newEncoder

public CodecEncoder newEncoder()
Description copied from class: Codec
Constructs a new encoder for this codec.

Specified by:
newEncoder in class Codec
Returns:
A new encoder for this codec


Copyright © 2013. All Rights Reserved.