Package 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.
- Author:
- Bas Peters, Corey Keith
-
-
Field Summary
Fields Modifier and Type Field Description protected CodeTable
ct
protected boolean
loadedMultibyte
-
Constructor Summary
Constructors Constructor Description AnselToUnicode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
ct
protected CodeTable ct
-
loadedMultibyte
protected boolean loadedMultibyte
-
-
Method Detail
-
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 interfaceCharacterConverter
- 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 interfaceCharacterConverter
- Parameters:
data
- the MARC-8 data- Returns:
- char[] - the UCS/Unicode data
-
-