org.jqurantree.arabic.encoding
Class EncodingFactory

java.lang.Object
  extended by org.jqurantree.arabic.encoding.EncodingFactory

public class EncodingFactory
extends java.lang.Object

The EncodingFactory supports the creation of ArabicEncoder and ArabicDecoder instances. This class is used by the ArabicText.toString(EncodingType) and ArabicText.fromEncoding(String, EncodingType) methods.

Author:
Kais Dukes

Method Summary
static ArabicDecoder getDecoder(EncodingType encodingType)
          Gets a new ArabicDecoder instance for the specified encoding scheme.
static ArabicEncoder getEncoder(EncodingType encodingType)
          Gets a new ArabicEncoder instance for the specified encoding scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEncoder

public static ArabicEncoder getEncoder(EncodingType encodingType)
Gets a new ArabicEncoder instance for the specified encoding scheme.

Parameters:
encodingType - the encoding scheme to use
Returns:
a new ArabicEncoder instance

getDecoder

public static ArabicDecoder getDecoder(EncodingType encodingType)
Gets a new ArabicDecoder instance for the specified encoding scheme.

Parameters:
encodingType - the encoding scheme to use
Returns:
a new ArabicDecoder instance


Copyright© Kais Dukes, 2009. All Rights Reserved.