org.marc4j.util
Class UnicodeToIso6937

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

public class UnicodeToIso6937
extends Object
implements CharacterConverter

A utility to convert UCS/Unicode data to ISO 6937.

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

Constructor Summary
UnicodeToIso6937()
           
 
Method Summary
 char[] convert(char[] data)
          Converts UCS/Unicode data to ISO 6937.
 String convert(String data)
          Converts UCS/Unicode data to ISO 6937.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicodeToIso6937

public UnicodeToIso6937()
Method Detail

convert

public String convert(String data)

Converts UCS/Unicode data to ISO 6937.

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 ISO 6937 data

convert

public char[] convert(char[] data)

Converts UCS/Unicode data to ISO 6937.

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 ISO 6937 data


Copyright 2001-2003 Bas Peters. All Rights Reserved.