コード例 #1
0
ファイル: AnselToUnicode.cs プロジェクト: gjunge/MARC4J.Net
        private ICodeTableInterface LoadGeneratedTable(bool loadMultibyte)
        {
            ICodeTableInterface ct;

            if (loadMultibyte)
            {
                ct = Converter.CodeTable.DefaultMultibyteLoadedCodeTable;
            }
            else
            {
                ct = Converter.CodeTable.DefaultCodeTable;
            }
            loadedMultibyte = loadMultibyte;
            return(ct);
        }
コード例 #2
0
ファイル: AnselToUnicode.cs プロジェクト: gjunge/MARC4J.Net
 /// <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;
 }
コード例 #3
0
ファイル: AnselToUnicode.cs プロジェクト: gjunge/MARC4J.Net
 /// <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);
 }
コード例 #4
0
ファイル: AnselToUnicode.cs プロジェクト: gjunge/MARC4J.Net
 /// <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);
 }
コード例 #5
0
ファイル: AnselToUnicode.cs プロジェクト: gjunge/MARC4J.Net
 /// <summary>
 /// Loads the entire mapping (including multibyte characters) from the Library of Congress.
 /// </summary>
 private void LoadMultibyte()
 {
     ct = CodeTable.DefaultMultibyteLoadedCodeTable;
 }
コード例 #6
0
ファイル: AnselToUnicode.cs プロジェクト: gjunge/MARC4J.Net
 /// <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;
 }
コード例 #7
0
ファイル: AnselToUnicode.cs プロジェクト: gjunge/MARC4J.Net
 /// <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;
 }
コード例 #8
0
ファイル: AnselToUnicode.cs プロジェクト: gjunge/MARC4J.Net
 /// <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;
 }