org.omnaest.utils.codec
Class Codec

java.lang.Object
  extended by org.omnaest.utils.codec.Codec

public abstract class Codec
extends Object

Class containing Codec

Author:
Omnaest
See Also:
AlphaNumeric

Nested Class Summary
static interface Codec.Decoder<DECODED,ENCODED>
          A Codec.Decoder offer the Codec.Decoder.decode(Object) method to decode encoded Objects
static interface Codec.Encoder<ENCODED,DECODED>
          An Codec.Encoder provides an Codec.Encoder.encode(Object) method to encode give source Objects
static interface Codec.EncoderAndDecoder<ENCODED,DECODED>
           
 
Field Summary
 Codec.EncoderAndDecoder<String,String> AlphaNumeric
          Deprecated. use alphaNumeric() instead
 
Constructor Summary
Codec()
           
 
Method Summary
static Codec.EncoderAndDecoder<String,String> alphaNumeric()
          Returns a new EncoderAndDecoderAlphanumericTokens instance
static Codec.EncoderAndDecoder<String,String> escaping(String escapeCharacter, String... encodedCharacters)
          Returns a new EncoderAndDecoderEscaping instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AlphaNumeric

@Deprecated
public final Codec.EncoderAndDecoder<String,String> AlphaNumeric
Deprecated. use alphaNumeric() instead
The EncoderAndDecoderAlphanumericTokens instance (thread safe) allows to process texts as pure alphanumeric token streams with a encoding for non alphanumeric characters.

See Also:
ElementConverterStringToAlphaNumericEncodedString, ElementConverterAlphaNumericEncodedStringToDecodedString
Constructor Detail

Codec

public Codec()
Method Detail

alphaNumeric

public static Codec.EncoderAndDecoder<String,String> alphaNumeric()
Returns a new EncoderAndDecoderAlphanumericTokens instance

Returns:
See Also:
ElementConverterStringToAlphaNumericEncodedString, ElementConverterAlphaNumericEncodedStringToDecodedString

escaping

public static Codec.EncoderAndDecoder<String,String> escaping(String escapeCharacter,
                                                              String... encodedCharacters)
Returns a new EncoderAndDecoderEscaping instance

Parameters:
escapeCharacter -
encodedCharacters -
Returns:


Copyright © 2013. All Rights Reserved.