QJCC homepage

biz.chitec.quarterback.util
Class CharsetProvider

java.lang.Object
  extended byjava.nio.charset.spi.CharsetProvider
      extended bybiz.chitec.quarterback.util.CharsetProvider

public class CharsetProvider
extends java.nio.charset.spi.CharsetProvider

Provider for QJCC-embedded charsets "GSM-SMS" and "HexNibble". This class provides the charsets which are delivered with the QJCC. To make them known to the Charset-framework of the JVM, the provider itself must be registered. The way to do this is to have the file META-INF/services/java.nio.charset.spi.CharsetProvider either in the archive or in the CLASSPATH part which contains the CharsetProvider. The file contains the fully-qualified name of this very class and is distributed within the QJCC package.

Version:
$Id: 0fc109322c4ad8caed150ed522985ff48d6ae37b $
Author:
cantamen/Dirk Hillbrecht 2005. Released under the LGPL.
See Also:
GSMCharset, HexNibbleCharset

Field Summary
private  java.util.List mycharsets
           
 
Constructor Summary
CharsetProvider()
           
 
Method Summary
 java.nio.charset.Charset charsetForName(java.lang.String charsetName)
           
 java.util.Iterator charsets()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mycharsets

private java.util.List mycharsets
Constructor Detail

CharsetProvider

public CharsetProvider()
Method Detail

charsets

public java.util.Iterator charsets()

charsetForName

public java.nio.charset.Charset charsetForName(java.lang.String charsetName)

QJCC homepage