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).

Version:
$Revision: 1.4 $
Author:
Bas Peters
, Yves Pratter

Constructor Summary
UnicodeToIso5426()
           
 
Method Summary
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicodeToIso5426

public UnicodeToIso5426()
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 interface CharacterConverter
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 interface CharacterConverter
Parameters:
data - the UCS/Unicode data
Returns:
char[] - the UNIMARC (ISO 5426 charset) data


Copyright 2001-2003 Bas Peters. All Rights Reserved.