|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.marc4j.converter.CharConverter
org.marc4j.converter.impl.UnicodeToAnsel
public class UnicodeToAnsel
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.
Field Summary | |
---|---|
protected ReverseCodeTable |
rct
|
Constructor Summary | |
---|---|
UnicodeToAnsel()
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. |
Method Summary | |
---|---|
String |
convert(char[] data)
Converts UCS/Unicode data to MARC-8. |
Methods inherited from class org.marc4j.converter.CharConverter |
---|
convert, convert |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ReverseCodeTable rct
Constructor Detail |
---|
public UnicodeToAnsel()
public UnicodeToAnsel(String pathname)
public UnicodeToAnsel(InputStream in)
Method Detail |
---|
public String convert(char[] data)
A question mark (0x3F) is returned if there is no match.
convert
in class CharConverter
data
- - the UCS/Unicode data in an array of char
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |