|
||||||||||
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.AnselToUnicode
public class AnselToUnicode
A utility to convert MARC-8 data to non-precomposed UCS/Unicode.
The MARC-8 to Unicode mapping used is the version with the March 2005 revisions.
Field Summary | |
---|---|
protected CodeTableInterface |
ct
|
protected ErrorHandler |
errorList
|
protected boolean |
loadedMultibyte
|
Constructor Summary | |
---|---|
AnselToUnicode()
Creates a new instance and loads the MARC4J supplied conversion tables based on the official LC tables. |
|
AnselToUnicode(boolean loadMultibyte)
Creates a new instance and loads the MARC4J supplied conversion tables based on the official LC tables. |
|
AnselToUnicode(ErrorHandler errorList)
Creates a new instance and loads the MARC4J supplied conversion tables based on the official LC tables. |
|
AnselToUnicode(ErrorHandler errorList,
boolean loadMultibyte)
Creates a new instance and loads the MARC4J supplied conversion tables based on the official LC tables. |
|
AnselToUnicode(InputStream in)
Constructs an instance with the specified input stream. |
|
AnselToUnicode(String pathname)
Constructs an instance with the specified pathname. |
Method Summary | |
---|---|
String |
convert(char[] data)
Converts MARC-8 data to UCS/Unicode. |
char |
getMBChar(int ch)
|
int |
makeMultibyte(char c1,
char c2,
char c3)
|
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 CodeTableInterface ct
protected boolean loadedMultibyte
protected ErrorHandler errorList
Constructor Detail |
---|
public AnselToUnicode()
public AnselToUnicode(boolean loadMultibyte)
public AnselToUnicode(ErrorHandler errorList)
public AnselToUnicode(ErrorHandler errorList, boolean loadMultibyte)
public AnselToUnicode(String pathname)
public AnselToUnicode(InputStream in)
Method Detail |
---|
public String convert(char[] data)
Converts MARC-8 data to UCS/Unicode.
convert
in class CharConverter
data
- - the MARC-8 data in an array of char
public int makeMultibyte(char c1, char c2, char c3)
public char getMBChar(int ch)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |