private ICodeTableInterface LoadGeneratedTable(bool loadMultibyte) { ICodeTableInterface ct; if (loadMultibyte) { ct = Converter.CodeTable.DefaultMultibyteLoadedCodeTable; } else { ct = Converter.CodeTable.DefaultCodeTable; } loadedMultibyte = loadMultibyte; return(ct); }
/// <summary> /// Creates a new instance and loads the MARC4J.Net supplied /// conversion tables based on the official LC tables. /// </summary> /// <param name="errorList"></param> public AnselToUnicode(ErrorHandler errorList) { ct = LoadGeneratedTable(false); this.errorList = errorList; }
/// <summary> /// Creates a new instance and loads the MARC4J.Net supplied /// conversion tables based on the official LC tables. /// </summary> /// <param name="loadMultibyte"></param> public AnselToUnicode(bool loadMultibyte) { ct = LoadGeneratedTable(loadMultibyte); }
/// <summary> /// Creates a new instance and loads the MARC4J.Net supplied /// conversion tables based on the official LC tables. /// </summary> public AnselToUnicode() { ct = LoadGeneratedTable(false); }
/// <summary> /// Loads the entire mapping (including multibyte characters) from the Library of Congress. /// </summary> private void LoadMultibyte() { ct = CodeTable.DefaultMultibyteLoadedCodeTable; }
/// <summary> /// Constructs an instance with the specified input stream. /// /// Use this constructor to create an instance with a customized code table /// mapping. The mapping file should follow the structure of LC's XML MARC-8 /// to Unicode mapping (see: /// http://www.loc.gov/marc/specifications/codetables.xml). /// </summary> /// <param name="?"></param> public AnselToUnicode(Stream stream) { ct = new CodeTable(stream); loadedMultibyte = true; }
/// <summary> /// Constructs an instance with the specified pathname. /// Use this constructor to create an instance with a customized code table /// mapping. The mapping file should follow the structure of LC's XML MARC-8 /// to Unicode mapping (see: /// http://www.loc.gov/marc/specifications/codetables.xml). /// </summary> /// <param name="pathname"></param> public AnselToUnicode(String pathname) { ct = new CodeTable(pathname); loadedMultibyte = true; }
/// <summary> /// Creates a new instance and loads the MARC4J.Net supplied /// conversion tables based on the official LC tables. /// </summary> /// <param name="errorList"></param> /// <param name="loadMultibyte"></param> public AnselToUnicode(ErrorHandler errorList, bool loadMultibyte) { ct = LoadGeneratedTable(loadMultibyte); this.errorList = errorList; }