public class AnselToUnicode extends CharConverter
| Modifier and Type | Field and Description |
|---|---|
protected CodeTableInterface |
ct |
protected ErrorHandler |
errorList |
protected boolean |
loadedMultibyte |
protected boolean |
translateNCR |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
convert(char[] data)
Converts MARC-8 data to UCS/Unicode.
|
char |
getMBChar(int ch)
Gets the multibyte character.
|
String |
getMBCharStr(int ch)
Gets the multibyte character string.
|
int |
makeMultibyte(char c1,
char c2,
char c3)
Makes a multibyte.
|
boolean |
outputsUnicode()
Should return true if the CharConverter outputs Unicode encoded characters
|
void |
setTranslateNCR(boolean translateNCR)
Sets whether we should translate to NCR.
|
boolean |
shouldTranslateNCR()
Returns true if should translate to NCR.
|
convert, convertprotected CodeTableInterface ct
protected boolean loadedMultibyte
protected boolean translateNCR
protected ErrorHandler errorList
public AnselToUnicode()
public AnselToUnicode(boolean loadMultibyte)
public AnselToUnicode(ErrorHandler errorList)
public AnselToUnicode(ErrorHandler errorList, boolean loadMultibyte)
public AnselToUnicode(String pathname)
public AnselToUnicode(InputStream in)
public boolean shouldTranslateNCR()
public void setTranslateNCR(boolean translateNCR)
translateNCR - True if we should translate to NCR; else, falsepublic boolean outputsUnicode()
outputsUnicode in class CharConverterpublic String convert(char[] data)
Converts MARC-8 data to UCS/Unicode.
convert in class CharConverterdata - - the MARC-8 data in an array of charpublic int makeMultibyte(char c1,
char c2,
char c3)
c1 - Character onec2 - Character twoc3 - Character threepublic char getMBChar(int ch)
ch - The int from which to get the multibyte characterpublic String getMBCharStr(int ch)
ch - The int from which to get the multibyte characterCopyright © 2014 FreeLibrary. All Rights Reserved.