ariba.util.i18n
Class I18NSupport

java.lang.Object
  extended by ariba.util.i18n.I18NSupport
Direct Known Subclasses:
CJKSupport, Support_iw, Support_ru

public class I18NSupport
extends Object

Class I18NSupport is the default class for i18n support, it contains the default implementation of i18n support. All language specific support should extend this class.


Constructor Summary
I18NSupport()
          Class constructor.
 
Method Summary
 int decompositionFlag()
          Returns the decomposition flag
 String fileEncoding()
          Returns the file encoding string for the specified locale
 int getStringWidth(String string)
          Returns the width of the input string
 boolean isSupportedInEM()
          Check if it is supported by EM
 String mimeBodyCharset()
          Returns the MIME body charset string
 String mimeBodyEncoding()
          Returns the MIME body encoding string
 String mimeHeaderEncoding()
          Returns the MIME header encoding string
 String normalizeCatalog(String string)
          Normalizes characters in the catalog string
 String normalizeDate(String string)
          Normalizes the input date format string
 String normalizeMailText(String string)
          Normalizes the input mail text string
 String normalizeMoney(String string)
          Normalizes the input money format string
 String normalizeNumber(String string)
          Normalizes the input decimal string
 String readFileText(String string)
          Normalizes the input read text string
 String uiEncoding()
          Returns the UI encoding string
 int widthInBytes(String string)
          Returns the width of the input string using its default encoding
 String writeFileText(String string, String encoding)
          Normalizes the input write text string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

I18NSupport

public I18NSupport()
Class constructor.

Method Detail

uiEncoding

public String uiEncoding()
Returns the UI encoding string

Returns:
the encoding string

fileEncoding

public String fileEncoding()
Returns the file encoding string for the specified locale

Returns:
the encoding string

mimeHeaderEncoding

public String mimeHeaderEncoding()
Returns the MIME header encoding string

Returns:
the encoding string

mimeBodyEncoding

public String mimeBodyEncoding()
Returns the MIME body encoding string

Returns:
the encoding string

mimeBodyCharset

public String mimeBodyCharset()
Returns the MIME body charset string

Returns:
the encoding string

normalizeCatalog

public String normalizeCatalog(String string)
Normalizes characters in the catalog string

Parameters:
string - the string to be normalized
Returns:
the normalized string

normalizeDate

public String normalizeDate(String string)
Normalizes the input date format string

Parameters:
string - the string to be normalized
Returns:
the normalized string

normalizeNumber

public String normalizeNumber(String string)
Normalizes the input decimal string

Parameters:
string - the string to be normalized
Returns:
the normalized string

normalizeMoney

public String normalizeMoney(String string)
Normalizes the input money format string

Parameters:
string - the string to be normalized
Returns:
the normalized string

readFileText

public String readFileText(String string)
Normalizes the input read text string

Parameters:
string - the string to be normalized
Returns:
the normalized string

writeFileText

public String writeFileText(String string,
                            String encoding)
Normalizes the input write text string

Parameters:
string - the string to be normalized
Returns:
the normalized string

normalizeMailText

public String normalizeMailText(String string)
Normalizes the input mail text string

Parameters:
string - the string to be normalized
Returns:
the normalized string

widthInBytes

public int widthInBytes(String string)
Returns the width of the input string using its default encoding

Parameters:
string - the string to get the width of
Returns:
the width of the string

getStringWidth

public int getStringWidth(String string)
Returns the width of the input string

Parameters:
string - the string to get the width of
Returns:
the width of the string

decompositionFlag

public int decompositionFlag()
Returns the decomposition flag

Returns:
the decomposition flag

isSupportedInEM

public boolean isSupportedInEM()
Check if it is supported by EM

Returns:
true by default


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.