file2xliff4j
Class MifCharsetProvider

java.lang.Object
  extended by java.nio.charset.spi.CharsetProvider
      extended by file2xliff4j.MifCharsetProvider

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

Author:
Weldon Whipple <weldon@lingotek.com>

Constructor Summary
MifCharsetProvider()
          This is the required zero-argument constructor of this concrete subclass of CharsetProvider
 
Method Summary
 java.nio.charset.Charset charsetForName(java.lang.String name)
          Passed a name for the MIF character set, return the MifCharSet
 java.util.Iterator<java.nio.charset.Charset> charsets()
          Method to return an Iterator over the charsets supported by "this provider" (i.e., by us).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MifCharsetProvider

public MifCharsetProvider()
This is the required zero-argument constructor of this concrete subclass of CharsetProvider

Method Detail

charsetForName

public java.nio.charset.Charset charsetForName(java.lang.String name)
Passed a name for the MIF character set, return the MifCharSet

Specified by:
charsetForName in class java.nio.charset.spi.CharsetProvider
Parameters:
name - The name of the requested charset--either canonical or an alias.
Returns:
The MifCharSet (or null if no match)

charsets

public java.util.Iterator<java.nio.charset.Charset> charsets()
Method to return an Iterator over the charsets supported by "this provider" (i.e., by us).

Note: Since this "implementation" supports only one character set, thie iterator iterates only through that one set.

Specified by:
charsets in class java.nio.charset.spi.CharsetProvider
Returns:
The Charset Iterator