Package org.marc4j.util
Class UnicodeToIso5426
- java.lang.Object
-
- org.marc4j.util.UnicodeToIso5426
-
- All Implemented Interfaces:
CharacterConverter
public class UnicodeToIso5426 extends Object implements CharacterConverter
A utility to convert UCS/Unicode data to UNIMARC (ISO 5426 charset).
- Author:
- Bas Peters, Yves Pratter
-
-
Constructor Summary
Constructors Constructor Description UnicodeToIso5426()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]
convert(char[] data)
Converts UCS/Unicode data to UNIMARC (ISO 5426 charset).String
convert(String data)
Converts UCS/Unicode data to UNIMARC (ISO 5426 charset).
-
-
-
Method Detail
-
convert
public String convert(String data)
Converts UCS/Unicode data to UNIMARC (ISO 5426 charset).
A question mark (0x3F) is returned if there is no match.
- Specified by:
convert
in interfaceCharacterConverter
- Parameters:
data
- the UCS/Unicode data- Returns:
String
- the UNIMARC (ISO 5426 charset) data
-
convert
public char[] convert(char[] data)
Converts UCS/Unicode data to UNIMARC (ISO 5426 charset).
A question mark (0x3F) is returned if there is no match.
- Specified by:
convert
in interfaceCharacterConverter
- Parameters:
data
- the UCS/Unicode data- Returns:
- char[] - the UNIMARC (ISO 5426 charset) data
-
-