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.4 $
- Author:
- Bas Peters, Corey Keith
|
Method Summary |
char[] |
convert(char[] data)
Converts MARC-8 data to UCS/Unicode. |
String |
convert(String data)
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 |
ct
protected CodeTable ct
loadedMultibyte
protected boolean loadedMultibyte
AnselToUnicode
public AnselToUnicode()
loadMultibyte
public void loadMultibyte()
Loads the entire maping (including multibyte characters) from the Library of Congress.
convert
public String convert(String data)
Converts MARC-8 data to UCS/Unicode.
- Specified by:
convert in interface CharacterConverter
- Parameters:
data - the MARC-8 data
- 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-2004 Bas Peters. All Rights Reserved.