org.mobicents.protocols.ss7.map
Class GSMCharset

java.lang.Object
  extended by java.nio.charset.Charset
      extended by org.mobicents.protocols.ss7.map.GSMCharset
All Implemented Interfaces:
java.lang.Comparable<java.nio.charset.Charset>

public class GSMCharset
extends java.nio.charset.Charset

The encoding/decoding of 7 bits characters in USSD strings is used doing GSMCharset.


For further details look at GSM 03.38 Specs

Author:
amit bhayani

Field Summary
protected static float averageBytesPerChar
           
protected static float averageCharsPerByte
           
protected static int BUFFER_SIZE
           
protected static float maxBytesPerChar
           
protected static float maxCharsPerByte
           
 
Constructor Summary
GSMCharset(java.lang.String canonicalName, java.lang.String[] aliases)
           
 
Method Summary
 boolean contains(java.nio.charset.Charset cs)
           
 java.nio.charset.CharsetDecoder newDecoder()
           
 java.nio.charset.CharsetEncoder newEncoder()
           
 
Methods inherited from class java.nio.charset.Charset
aliases, availableCharsets, canEncode, compareTo, decode, defaultCharset, displayName, displayName, encode, encode, equals, forName, hashCode, isRegistered, isSupported, name, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

averageCharsPerByte

protected static final float averageCharsPerByte
See Also:
Constant Field Values

maxCharsPerByte

protected static final float maxCharsPerByte
See Also:
Constant Field Values

averageBytesPerChar

protected static final float averageBytesPerChar
See Also:
Constant Field Values

maxBytesPerChar

protected static final float maxBytesPerChar
See Also:
Constant Field Values

BUFFER_SIZE

protected static final int BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

GSMCharset

public GSMCharset(java.lang.String canonicalName,
                  java.lang.String[] aliases)
Method Detail

contains

public boolean contains(java.nio.charset.Charset cs)
Specified by:
contains in class java.nio.charset.Charset

newDecoder

public java.nio.charset.CharsetDecoder newDecoder()
Specified by:
newDecoder in class java.nio.charset.Charset

newEncoder

public java.nio.charset.CharsetEncoder newEncoder()
Specified by:
newEncoder in class java.nio.charset.Charset


Copyright © 2011. All Rights Reserved.