public class UnicodeToAnsel extends CharConverter
A utility to convert UCS/Unicode data to MARC-8.
The MARC-8 to Unicode mapping used is the version with the March 2005 revisions.
| Modifier and Type | Field and Description |
|---|---|
protected ReverseCodeTable |
rct |
| Constructor and Description |
|---|
UnicodeToAnsel()
Creates a new instance and loads the MARC4J supplied Ansel/Unicode conversion tables based on the official LC
tables.
|
UnicodeToAnsel(boolean defaultCharsetOnlyPlusNCR)
Creates a new instance and loads the MARC4J supplied Ansel/Unicode conversion tables based on the official LC
tables.
|
UnicodeToAnsel(InputStream in)
Constructs an instance with the specified input stream.
|
UnicodeToAnsel(String pathname)
Constructs an instance with the specified pathname.
|
| Modifier and Type | Method and Description |
|---|---|
String |
convert(char[] data)
Converts UCS/Unicode data to MARC-8.
|
convert, convert, outputsUnicodeprotected ReverseCodeTable rct
public UnicodeToAnsel()
public UnicodeToAnsel(boolean defaultCharsetOnlyPlusNCR)
public UnicodeToAnsel(String pathname)
public UnicodeToAnsel(InputStream in)
public String convert(char[] data)
If there is no match for a Unicode character, it will be encoded as XXXX; so that if the data is translated back into Unicode, the original data can be recreated.
convert in class CharConverterdata - - the UCS/Unicode data in an array of charCopyright © 2014 FreeLibrary. All Rights Reserved.