ariba.util.i18n
Class I18NSupport

java.lang.Object
  extended by ariba.util.i18n.I18NSupport
Direct Known Subclasses:
CJKSupport, Support_el, Support_hu, Support_iw, Support_pl, Support_ro, Support_ru, Support_tr

public class I18NSupport
extends java.lang.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
 java.lang.String fileEncoding()
          Returns the file encoding string for the specified locale
 int getStringWidth(java.lang.String string)
          Returns the width of the input string
 boolean isSupportedInEM()
          Check if it is supported by EM
 java.lang.String mimeBodyCharset()
          Returns the MIME body charset string
 java.lang.String mimeBodyEncoding()
          Returns the MIME body encoding string
 java.lang.String mimeHeaderEncoding()
          Returns the MIME header encoding string
 java.lang.String normalizeCatalog(java.lang.String string)
          Normalizes characters in the catalog string
 java.lang.String normalizeDate(java.lang.String string)
          Normalizes the input date format string
 java.lang.String normalizeMailText(java.lang.String string)
          Normalizes the input mail text string
 java.lang.String normalizeMoney(java.lang.String string)
          Normalizes the input money format string
 java.lang.String normalizeNumber(java.lang.String string)
          Normalizes the input decimal string
 java.lang.String readFileText(java.lang.String string)
          Normalizes the input read text string
 java.lang.String uiEncoding()
          Returns the UI encoding string
 int widthInBytes(java.lang.String string)
          Returns the width of the input string using its default encoding
 java.lang.String writeFileText(java.lang.String string, java.lang.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 java.lang.String uiEncoding()
Returns the UI encoding string

Returns:
the encoding string

fileEncoding

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

Returns:
the encoding string

mimeHeaderEncoding

public java.lang.String mimeHeaderEncoding()
Returns the MIME header encoding string

Returns:
the encoding string

mimeBodyEncoding

public java.lang.String mimeBodyEncoding()
Returns the MIME body encoding string

Returns:
the encoding string

mimeBodyCharset

public java.lang.String mimeBodyCharset()
Returns the MIME body charset string

Returns:
the encoding string

normalizeCatalog

public java.lang.String normalizeCatalog(java.lang.String string)
Normalizes characters in the catalog string

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

normalizeDate

public java.lang.String normalizeDate(java.lang.String string)
Normalizes the input date format string

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

normalizeNumber

public java.lang.String normalizeNumber(java.lang.String string)
Normalizes the input decimal string

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

normalizeMoney

public java.lang.String normalizeMoney(java.lang.String string)
Normalizes the input money format string

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

readFileText

public java.lang.String readFileText(java.lang.String string)
Normalizes the input read text string

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

writeFileText

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

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

normalizeMailText

public java.lang.String normalizeMailText(java.lang.String string)
Normalizes the input mail text string

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

widthInBytes

public int widthInBytes(java.lang.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(java.lang.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-2014 Ariba, Inc. All Rights Reserved.