org.marc4j.util
Class AnselToUnicode

java.lang.Object
  |
  +--org.marc4j.util.AnselToUnicode
All Implemented Interfaces:
CharacterConverter

public class AnselToUnicode
extends Object
implements CharacterConverter

A utility to convert MARC-8 data to non-precomposed UCS/Unicode.

Version:
$Revision: 1.13 $
Author:
Bas Peters
, Corey Keith

Field Summary
protected  CodeTable ct
           
protected  boolean loadedMultibyte
           
 
Constructor Summary
AnselToUnicode()
           
 
Method Summary
 char[] convert(char[] data)
          Converts MARC-8 data to UCS/Unicode.
 String convert(String s)
          Converts MARC-8 data to UCS/Unicode.
 void loadMultibyte()
          Loads the entire maping (including multibyte characters) from the Library of Congress.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ct

protected CodeTable ct

loadedMultibyte

protected boolean loadedMultibyte
Constructor Detail

AnselToUnicode

public AnselToUnicode()
Method Detail

loadMultibyte

public void loadMultibyte()

Loads the entire maping (including multibyte characters) from the Library of Congress.


convert

public String convert(String s)

Converts MARC-8 data to UCS/Unicode.

Specified by:
convert in interface CharacterConverter
Returns:
String - the UCS/Unicode data

convert

public char[] convert(char[] data)

Converts MARC-8 data to UCS/Unicode.

Specified by:
convert in interface CharacterConverter
Parameters:
data - the MARC-8 data
Returns:
char[] - the UCS/Unicode data


Copyright 2001-2003 Bas Peters. All Rights Reserved.