1 57 58 package com.sun.org.apache.xerces.internal.util; 59 60 import java.util.Hashtable ; 61 62 511 public class EncodingMap { 512 513 517 518 protected final static Hashtable fIANA2JavaMap = new Hashtable (); 519 520 521 protected final static Hashtable fJava2IANAMap = new Hashtable (); 522 523 527 static { 528 529 fIANA2JavaMap.put("BIG5", "Big5"); 531 fIANA2JavaMap.put("CSBIG5", "Big5"); 532 fIANA2JavaMap.put("CP037", "CP037"); 533 fIANA2JavaMap.put("IBM037", "CP037"); 534 fIANA2JavaMap.put("CSIBM037", "CP037"); 535 fIANA2JavaMap.put("EBCDIC-CP-US", "CP037"); 536 fIANA2JavaMap.put("EBCDIC-CP-CA", "CP037"); 537 fIANA2JavaMap.put("EBCDIC-CP-NL", "CP037"); 538 fIANA2JavaMap.put("EBCDIC-CP-WT", "CP037"); 539 fIANA2JavaMap.put("IBM273", "CP273"); 540 fIANA2JavaMap.put("CP273", "CP273"); 541 fIANA2JavaMap.put("CSIBM273", "CP273"); 542 fIANA2JavaMap.put("IBM277", "CP277"); 543 fIANA2JavaMap.put("CP277", "CP277"); 544 fIANA2JavaMap.put("CSIBM277", "CP277"); 545 fIANA2JavaMap.put("EBCDIC-CP-DK", "CP277"); 546 fIANA2JavaMap.put("EBCDIC-CP-NO", "CP277"); 547 fIANA2JavaMap.put("IBM278", "CP278"); 548 fIANA2JavaMap.put("CP278", "CP278"); 549 fIANA2JavaMap.put("CSIBM278", "CP278"); 550 fIANA2JavaMap.put("EBCDIC-CP-FI", "CP278"); 551 fIANA2JavaMap.put("EBCDIC-CP-SE", "CP278"); 552 fIANA2JavaMap.put("IBM280", "CP280"); 553 fIANA2JavaMap.put("CP280", "CP280"); 554 fIANA2JavaMap.put("CSIBM280", "CP280"); 555 fIANA2JavaMap.put("EBCDIC-CP-IT", "CP280"); 556 fIANA2JavaMap.put("IBM284", "CP284"); 557 fIANA2JavaMap.put("CP284", "CP284"); 558 fIANA2JavaMap.put("CSIBM284", "CP284"); 559 fIANA2JavaMap.put("EBCDIC-CP-ES", "CP284"); 560 fIANA2JavaMap.put("EBCDIC-CP-GB", "CP285"); 561 fIANA2JavaMap.put("IBM285", "CP285"); 562 fIANA2JavaMap.put("CP285", "CP285"); 563 fIANA2JavaMap.put("CSIBM285", "CP285"); 564 fIANA2JavaMap.put("EBCDIC-JP-KANA", "CP290"); 565 fIANA2JavaMap.put("IBM290", "CP290"); 566 fIANA2JavaMap.put("CP290", "CP290"); 567 fIANA2JavaMap.put("CSIBM290", "CP290"); 568 fIANA2JavaMap.put("EBCDIC-CP-FR", "CP297"); 569 fIANA2JavaMap.put("IBM297", "CP297"); 570 fIANA2JavaMap.put("CP297", "CP297"); 571 fIANA2JavaMap.put("CSIBM297", "CP297"); 572 fIANA2JavaMap.put("EBCDIC-CP-AR1", "CP420"); 573 fIANA2JavaMap.put("IBM420", "CP420"); 574 fIANA2JavaMap.put("CP420", "CP420"); 575 fIANA2JavaMap.put("CSIBM420", "CP420"); 576 fIANA2JavaMap.put("EBCDIC-CP-HE", "CP424"); 577 fIANA2JavaMap.put("IBM424", "CP424"); 578 fIANA2JavaMap.put("CP424", "CP424"); 579 fIANA2JavaMap.put("CSIBM424", "CP424"); 580 fIANA2JavaMap.put("IBM437", "CP437"); 581 fIANA2JavaMap.put("437", "CP437"); 582 fIANA2JavaMap.put("CP437", "CP437"); 583 fIANA2JavaMap.put("CSPC8CODEPAGE437", "CP437"); 584 fIANA2JavaMap.put("EBCDIC-CP-CH", "CP500"); 585 fIANA2JavaMap.put("IBM500", "CP500"); 586 fIANA2JavaMap.put("CP500", "CP500"); 587 fIANA2JavaMap.put("CSIBM500", "CP500"); 588 fIANA2JavaMap.put("EBCDIC-CP-CH", "CP500"); 589 fIANA2JavaMap.put("EBCDIC-CP-BE", "CP500"); 590 fIANA2JavaMap.put("IBM775", "CP775"); 591 fIANA2JavaMap.put("CP775", "CP775"); 592 fIANA2JavaMap.put("CSPC775BALTIC", "CP775"); 593 fIANA2JavaMap.put("IBM850", "CP850"); 594 fIANA2JavaMap.put("850", "CP850"); 595 fIANA2JavaMap.put("CP850", "CP850"); 596 fIANA2JavaMap.put("CSPC850MULTILINGUAL", "CP850"); 597 fIANA2JavaMap.put("IBM852", "CP852"); 598 fIANA2JavaMap.put("852", "CP852"); 599 fIANA2JavaMap.put("CP852", "CP852"); 600 fIANA2JavaMap.put("CSPCP852", "CP852"); 601 fIANA2JavaMap.put("IBM855", "CP855"); 602 fIANA2JavaMap.put("855", "CP855"); 603 fIANA2JavaMap.put("CP855", "CP855"); 604 fIANA2JavaMap.put("CSIBM855", "CP855"); 605 fIANA2JavaMap.put("IBM857", "CP857"); 606 fIANA2JavaMap.put("857", "CP857"); 607 fIANA2JavaMap.put("CP857", "CP857"); 608 fIANA2JavaMap.put("CSIBM857", "CP857"); 609 fIANA2JavaMap.put("IBM00858", "CP858"); 610 fIANA2JavaMap.put("CP00858", "CP858"); 611 fIANA2JavaMap.put("CCSID00858", "CP858"); 612 fIANA2JavaMap.put("IBM860", "CP860"); 613 fIANA2JavaMap.put("860", "CP860"); 614 fIANA2JavaMap.put("CP860", "CP860"); 615 fIANA2JavaMap.put("CSIBM860", "CP860"); 616 fIANA2JavaMap.put("IBM861", "CP861"); 617 fIANA2JavaMap.put("861", "CP861"); 618 fIANA2JavaMap.put("CP861", "CP861"); 619 fIANA2JavaMap.put("CP-IS", "CP861"); 620 fIANA2JavaMap.put("CSIBM861", "CP861"); 621 fIANA2JavaMap.put("IBM862", "CP862"); 622 fIANA2JavaMap.put("862", "CP862"); 623 fIANA2JavaMap.put("CP862", "CP862"); 624 fIANA2JavaMap.put("CSPC862LATINHEBREW", "CP862"); 625 fIANA2JavaMap.put("IBM863", "CP863"); 626 fIANA2JavaMap.put("863", "CP863"); 627 fIANA2JavaMap.put("CP863", "CP863"); 628 fIANA2JavaMap.put("CSIBM863", "CP863"); 629 fIANA2JavaMap.put("IBM864", "CP864"); 630 fIANA2JavaMap.put("CP864", "CP864"); 631 fIANA2JavaMap.put("CSIBM864", "CP864"); 632 fIANA2JavaMap.put("IBM865", "CP865"); 633 fIANA2JavaMap.put("865", "CP865"); 634 fIANA2JavaMap.put("CP865", "CP865"); 635 fIANA2JavaMap.put("CSIBM865", "CP865"); 636 fIANA2JavaMap.put("IBM866", "CP866"); 637 fIANA2JavaMap.put("866", "CP866"); 638 fIANA2JavaMap.put("CP866", "CP866"); 639 fIANA2JavaMap.put("CSIBM866", "CP866"); 640 fIANA2JavaMap.put("IBM868", "CP868"); 641 fIANA2JavaMap.put("CP868", "CP868"); 642 fIANA2JavaMap.put("CSIBM868", "CP868"); 643 fIANA2JavaMap.put("CP-AR", "CP868"); 644 fIANA2JavaMap.put("IBM869", "CP869"); 645 fIANA2JavaMap.put("CP869", "CP869"); 646 fIANA2JavaMap.put("CSIBM869", "CP869"); 647 fIANA2JavaMap.put("CP-GR", "CP869"); 648 fIANA2JavaMap.put("IBM870", "CP870"); 649 fIANA2JavaMap.put("CP870", "CP870"); 650 fIANA2JavaMap.put("CSIBM870", "CP870"); 651 fIANA2JavaMap.put("EBCDIC-CP-ROECE", "CP870"); 652 fIANA2JavaMap.put("EBCDIC-CP-YU", "CP870"); 653 fIANA2JavaMap.put("IBM871", "CP871"); 654 fIANA2JavaMap.put("CP871", "CP871"); 655 fIANA2JavaMap.put("CSIBM871", "CP871"); 656 fIANA2JavaMap.put("EBCDIC-CP-IS", "CP871"); 657 fIANA2JavaMap.put("IBM918", "CP918"); 658 fIANA2JavaMap.put("CP918", "CP918"); 659 fIANA2JavaMap.put("CSIBM918", "CP918"); 660 fIANA2JavaMap.put("EBCDIC-CP-AR2", "CP918"); 661 fIANA2JavaMap.put("IBM00924", "CP924"); 662 fIANA2JavaMap.put("CP00924", "CP924"); 663 fIANA2JavaMap.put("CCSID00924", "CP924"); 664 fIANA2JavaMap.put("EBCDIC-LATIN9--EURO", "CP924"); 666 fIANA2JavaMap.put("IBM1026", "CP1026"); 667 fIANA2JavaMap.put("CP1026", "CP1026"); 668 fIANA2JavaMap.put("CSIBM1026", "CP1026"); 669 fIANA2JavaMap.put("IBM01140", "Cp1140"); 670 fIANA2JavaMap.put("CP01140", "Cp1140"); 671 fIANA2JavaMap.put("CCSID01140", "Cp1140"); 672 fIANA2JavaMap.put("IBM01141", "Cp1141"); 673 fIANA2JavaMap.put("CP01141", "Cp1141"); 674 fIANA2JavaMap.put("CCSID01141", "Cp1141"); 675 fIANA2JavaMap.put("IBM01142", "Cp1142"); 676 fIANA2JavaMap.put("CP01142", "Cp1142"); 677 fIANA2JavaMap.put("CCSID01142", "Cp1142"); 678 fIANA2JavaMap.put("IBM01143", "Cp1143"); 679 fIANA2JavaMap.put("CP01143", "Cp1143"); 680 fIANA2JavaMap.put("CCSID01143", "Cp1143"); 681 fIANA2JavaMap.put("IBM01144", "Cp1144"); 682 fIANA2JavaMap.put("CP01144", "Cp1144"); 683 fIANA2JavaMap.put("CCSID01144", "Cp1144"); 684 fIANA2JavaMap.put("IBM01145", "Cp1145"); 685 fIANA2JavaMap.put("CP01145", "Cp1145"); 686 fIANA2JavaMap.put("CCSID01145", "Cp1145"); 687 fIANA2JavaMap.put("IBM01146", "Cp1146"); 688 fIANA2JavaMap.put("CP01146", "Cp1146"); 689 fIANA2JavaMap.put("CCSID01146", "Cp1146"); 690 fIANA2JavaMap.put("IBM01147", "Cp1147"); 691 fIANA2JavaMap.put("CP01147", "Cp1147"); 692 fIANA2JavaMap.put("CCSID01147", "Cp1147"); 693 fIANA2JavaMap.put("IBM01148", "Cp1148"); 694 fIANA2JavaMap.put("CP01148", "Cp1148"); 695 fIANA2JavaMap.put("CCSID01148", "Cp1148"); 696 fIANA2JavaMap.put("IBM01149", "Cp1149"); 697 fIANA2JavaMap.put("CP01149", "Cp1149"); 698 fIANA2JavaMap.put("CCSID01149", "Cp1149"); 699 fIANA2JavaMap.put("EUC-JP", "EUCJIS"); 700 fIANA2JavaMap.put("CSEUCPKDFMTJAPANESE", "EUCJIS"); 701 fIANA2JavaMap.put("EXTENDED_UNIX_CODE_PACKED_FORMAT_FOR_JAPANESE", "EUCJIS"); 702 fIANA2JavaMap.put("EUC-KR", "KSC5601"); 703 fIANA2JavaMap.put("CSEUCKR", "KSC5601"); 704 fIANA2JavaMap.put("KS_C_5601-1987", "KS_C_5601-1987"); 705 fIANA2JavaMap.put("ISO-IR-149", "KS_C_5601-1987"); 706 fIANA2JavaMap.put("KS_C_5601-1989", "KS_C_5601-1987"); 707 fIANA2JavaMap.put("KSC_5601", "KS_C_5601-1987"); 708 fIANA2JavaMap.put("KOREAN", "KS_C_5601-1987"); 709 fIANA2JavaMap.put("CSKSC56011987", "KS_C_5601-1987"); 710 fIANA2JavaMap.put("GB2312", "GB2312"); 711 fIANA2JavaMap.put("CSGB2312", "GB2312"); 712 fIANA2JavaMap.put("ISO-2022-JP", "JIS"); 713 fIANA2JavaMap.put("CSISO2022JP", "JIS"); 714 fIANA2JavaMap.put("ISO-2022-KR", "ISO2022KR"); 715 fIANA2JavaMap.put("CSISO2022KR", "ISO2022KR"); 716 fIANA2JavaMap.put("ISO-2022-CN", "ISO2022CN"); 717 718 fIANA2JavaMap.put("X0201", "JIS0201"); 719 fIANA2JavaMap.put("CSISO13JISC6220JP", "JIS0201"); 720 fIANA2JavaMap.put("X0208", "JIS0208"); 721 fIANA2JavaMap.put("ISO-IR-87", "JIS0208"); 722 fIANA2JavaMap.put("X0208dbiJIS_X0208-1983", "JIS0208"); 723 fIANA2JavaMap.put("CSISO87JISX0208", "JIS0208"); 724 fIANA2JavaMap.put("X0212", "JIS0212"); 725 fIANA2JavaMap.put("ISO-IR-159", "JIS0212"); 726 fIANA2JavaMap.put("CSISO159JISX02121990", "JIS0212"); 727 fIANA2JavaMap.put("GB18030", "GB18030"); 728 fIANA2JavaMap.put("GBK", "GBK"); 729 fIANA2JavaMap.put("CP936", "GBK"); 730 fIANA2JavaMap.put("MS936", "GBK"); 731 fIANA2JavaMap.put("WINDOWS-936", "GBK"); 732 fIANA2JavaMap.put("SHIFT_JIS", "SJIS"); 733 fIANA2JavaMap.put("CSSHIFTJIS", "SJIS"); 734 fIANA2JavaMap.put("MS_KANJI", "SJIS"); 735 fIANA2JavaMap.put("WINDOWS-31J", "MS932"); 736 fIANA2JavaMap.put("CSWINDOWS31J", "MS932"); 737 738 fIANA2JavaMap.put("WINDOWS-1250", "Cp1250"); 740 fIANA2JavaMap.put("WINDOWS-1251", "Cp1251"); 741 fIANA2JavaMap.put("WINDOWS-1252", "Cp1252"); 742 fIANA2JavaMap.put("WINDOWS-1253", "Cp1253"); 743 fIANA2JavaMap.put("WINDOWS-1254", "Cp1254"); 744 fIANA2JavaMap.put("WINDOWS-1255", "Cp1255"); 745 fIANA2JavaMap.put("WINDOWS-1256", "Cp1256"); 746 fIANA2JavaMap.put("WINDOWS-1257", "Cp1257"); 747 fIANA2JavaMap.put("WINDOWS-1258", "Cp1258"); 748 fIANA2JavaMap.put("TIS-620", "TIS620"); 749 750 fIANA2JavaMap.put("ISO-8859-1", "ISO8859_1"); 751 fIANA2JavaMap.put("ISO-IR-100", "ISO8859_1"); 752 fIANA2JavaMap.put("ISO_8859-1", "ISO8859_1"); 753 fIANA2JavaMap.put("LATIN1", "ISO8859_1"); 754 fIANA2JavaMap.put("CSISOLATIN1", "ISO8859_1"); 755 fIANA2JavaMap.put("L1", "ISO8859_1"); 756 fIANA2JavaMap.put("IBM819", "ISO8859_1"); 757 fIANA2JavaMap.put("CP819", "ISO8859_1"); 758 759 fIANA2JavaMap.put("ISO-8859-2", "ISO8859_2"); 760 fIANA2JavaMap.put("ISO-IR-101", "ISO8859_2"); 761 fIANA2JavaMap.put("ISO_8859-2", "ISO8859_2"); 762 fIANA2JavaMap.put("LATIN2", "ISO8859_2"); 763 fIANA2JavaMap.put("CSISOLATIN2", "ISO8859_2"); 764 fIANA2JavaMap.put("L2", "ISO8859_2"); 765 766 fIANA2JavaMap.put("ISO-8859-3", "ISO8859_3"); 767 fIANA2JavaMap.put("ISO-IR-109", "ISO8859_3"); 768 fIANA2JavaMap.put("ISO_8859-3", "ISO8859_3"); 769 fIANA2JavaMap.put("LATIN3", "ISO8859_3"); 770 fIANA2JavaMap.put("CSISOLATIN3", "ISO8859_3"); 771 fIANA2JavaMap.put("L3", "ISO8859_3"); 772 773 fIANA2JavaMap.put("ISO-8859-4", "ISO8859_4"); 774 fIANA2JavaMap.put("ISO-IR-110", "ISO8859_4"); 775 fIANA2JavaMap.put("ISO_8859-4", "ISO8859_4"); 776 fIANA2JavaMap.put("LATIN4", "ISO8859_4"); 777 fIANA2JavaMap.put("CSISOLATIN4", "ISO8859_4"); 778 fIANA2JavaMap.put("L4", "ISO8859_4"); 779 780 fIANA2JavaMap.put("ISO-8859-5", "ISO8859_5"); 781 fIANA2JavaMap.put("ISO-IR-144", "ISO8859_5"); 782 fIANA2JavaMap.put("ISO_8859-5", "ISO8859_5"); 783 fIANA2JavaMap.put("CYRILLIC", "ISO8859_5"); 784 fIANA2JavaMap.put("CSISOLATINCYRILLIC", "ISO8859_5"); 785 786 fIANA2JavaMap.put("ISO-8859-6", "ISO8859_6"); 787 fIANA2JavaMap.put("ISO-IR-127", "ISO8859_6"); 788 fIANA2JavaMap.put("ISO_8859-6", "ISO8859_6"); 789 fIANA2JavaMap.put("ECMA-114", "ISO8859_6"); 790 fIANA2JavaMap.put("ASMO-708", "ISO8859_6"); 791 fIANA2JavaMap.put("ARABIC", "ISO8859_6"); 792 fIANA2JavaMap.put("CSISOLATINARABIC", "ISO8859_6"); 793 794 fIANA2JavaMap.put("ISO-8859-7", "ISO8859_7"); 795 fIANA2JavaMap.put("ISO-IR-126", "ISO8859_7"); 796 fIANA2JavaMap.put("ISO_8859-7", "ISO8859_7"); 797 fIANA2JavaMap.put("ELOT_928", "ISO8859_7"); 798 fIANA2JavaMap.put("ECMA-118", "ISO8859_7"); 799 fIANA2JavaMap.put("GREEK", "ISO8859_7"); 800 fIANA2JavaMap.put("CSISOLATINGREEK", "ISO8859_7"); 801 fIANA2JavaMap.put("GREEK8", "ISO8859_7"); 802 803 fIANA2JavaMap.put("ISO-8859-8", "ISO8859_8"); 804 fIANA2JavaMap.put("ISO-8859-8-I", "ISO8859_8"); fIANA2JavaMap.put("ISO-IR-138", "ISO8859_8"); 806 fIANA2JavaMap.put("ISO_8859-8", "ISO8859_8"); 807 fIANA2JavaMap.put("HEBREW", "ISO8859_8"); 808 fIANA2JavaMap.put("CSISOLATINHEBREW", "ISO8859_8"); 809 810 fIANA2JavaMap.put("ISO-8859-9", "ISO8859_9"); 811 fIANA2JavaMap.put("ISO-IR-148", "ISO8859_9"); 812 fIANA2JavaMap.put("ISO_8859-9", "ISO8859_9"); 813 fIANA2JavaMap.put("LATIN5", "ISO8859_9"); 814 fIANA2JavaMap.put("CSISOLATIN5", "ISO8859_9"); 815 fIANA2JavaMap.put("L5", "ISO8859_9"); 816 817 fIANA2JavaMap.put("ISO-8859-13", "ISO8859_13"); 818 819 fIANA2JavaMap.put("ISO-8859-15", "ISO8859_15_FDIS"); 820 fIANA2JavaMap.put("ISO_8859-15", "ISO8859_15_FDIS"); 821 fIANA2JavaMap.put("LATIN-9", "ISO8859_15_FDIS"); 822 823 fIANA2JavaMap.put("KOI8-R", "KOI8_R"); 824 fIANA2JavaMap.put("CSKOI8R", "KOI8_R"); 825 fIANA2JavaMap.put("US-ASCII", "ASCII"); 826 fIANA2JavaMap.put("ISO-IR-6", "ASCII"); 827 fIANA2JavaMap.put("ANSI_X3.4-1968", "ASCII"); 828 fIANA2JavaMap.put("ANSI_X3.4-1986", "ASCII"); 829 fIANA2JavaMap.put("ISO_646.IRV:1991", "ASCII"); 830 fIANA2JavaMap.put("ASCII", "ASCII"); 831 fIANA2JavaMap.put("CSASCII", "ASCII"); 832 fIANA2JavaMap.put("ISO646-US", "ASCII"); 833 fIANA2JavaMap.put("US", "ASCII"); 834 fIANA2JavaMap.put("IBM367", "ASCII"); 835 fIANA2JavaMap.put("CP367", "ASCII"); 836 fIANA2JavaMap.put("UTF-8", "UTF8"); 837 fIANA2JavaMap.put("UTF-16", "UTF-16"); 838 fIANA2JavaMap.put("UTF-16BE", "UnicodeBig"); 839 fIANA2JavaMap.put("UTF-16LE", "UnicodeLittle"); 840 841 fIANA2JavaMap.put("IBM-1047", "Cp1047"); 845 fIANA2JavaMap.put("IBM1047", "Cp1047"); 846 fIANA2JavaMap.put("CP1047", "Cp1047"); 847 848 fIANA2JavaMap.put("IBM-37", "CP037"); 851 fIANA2JavaMap.put("IBM-273", "CP273"); 852 fIANA2JavaMap.put("IBM-277", "CP277"); 853 fIANA2JavaMap.put("IBM-278", "CP278"); 854 fIANA2JavaMap.put("IBM-280", "CP280"); 855 fIANA2JavaMap.put("IBM-284", "CP284"); 856 fIANA2JavaMap.put("IBM-285", "CP285"); 857 fIANA2JavaMap.put("IBM-290", "CP290"); 858 fIANA2JavaMap.put("IBM-297", "CP297"); 859 fIANA2JavaMap.put("IBM-420", "CP420"); 860 fIANA2JavaMap.put("IBM-424", "CP424"); 861 fIANA2JavaMap.put("IBM-437", "CP437"); 862 fIANA2JavaMap.put("IBM-500", "CP500"); 863 fIANA2JavaMap.put("IBM-775", "CP775"); 864 fIANA2JavaMap.put("IBM-850", "CP850"); 865 fIANA2JavaMap.put("IBM-852", "CP852"); 866 fIANA2JavaMap.put("IBM-855", "CP855"); 867 fIANA2JavaMap.put("IBM-857", "CP857"); 868 fIANA2JavaMap.put("IBM-858", "CP858"); 869 fIANA2JavaMap.put("IBM-860", "CP860"); 870 fIANA2JavaMap.put("IBM-861", "CP861"); 871 fIANA2JavaMap.put("IBM-862", "CP862"); 872 fIANA2JavaMap.put("IBM-863", "CP863"); 873 fIANA2JavaMap.put("IBM-864", "CP864"); 874 fIANA2JavaMap.put("IBM-865", "CP865"); 875 fIANA2JavaMap.put("IBM-866", "CP866"); 876 fIANA2JavaMap.put("IBM-868", "CP868"); 877 fIANA2JavaMap.put("IBM-869", "CP869"); 878 fIANA2JavaMap.put("IBM-870", "CP870"); 879 fIANA2JavaMap.put("IBM-871", "CP871"); 880 fIANA2JavaMap.put("IBM-918", "CP918"); 881 fIANA2JavaMap.put("IBM-924", "CP924"); 882 fIANA2JavaMap.put("IBM-1026", "CP1026"); 883 fIANA2JavaMap.put("IBM-1140", "Cp1140"); 884 fIANA2JavaMap.put("IBM-1141", "Cp1141"); 885 fIANA2JavaMap.put("IBM-1142", "Cp1142"); 886 fIANA2JavaMap.put("IBM-1143", "Cp1143"); 887 fIANA2JavaMap.put("IBM-1144", "Cp1144"); 888 fIANA2JavaMap.put("IBM-1145", "Cp1145"); 889 fIANA2JavaMap.put("IBM-1146", "Cp1146"); 890 fIANA2JavaMap.put("IBM-1147", "Cp1147"); 891 fIANA2JavaMap.put("IBM-1148", "Cp1148"); 892 fIANA2JavaMap.put("IBM-1149", "Cp1149"); 893 fIANA2JavaMap.put("IBM-819", "ISO8859_1"); 894 fIANA2JavaMap.put("IBM-367", "ASCII"); 895 896 900 fJava2IANAMap.put("ISO8859_1", "ISO-8859-1"); 903 fJava2IANAMap.put("ISO8859_2", "ISO-8859-2"); 904 fJava2IANAMap.put("ISO8859_3", "ISO-8859-3"); 905 fJava2IANAMap.put("ISO8859_4", "ISO-8859-4"); 906 fJava2IANAMap.put("ISO8859_5", "ISO-8859-5"); 907 fJava2IANAMap.put("ISO8859_6", "ISO-8859-6"); 908 fJava2IANAMap.put("ISO8859_7", "ISO-8859-7"); 909 fJava2IANAMap.put("ISO8859_8", "ISO-8859-8"); 910 fJava2IANAMap.put("ISO8859_9", "ISO-8859-9"); 911 fJava2IANAMap.put("ISO8859_13", "ISO-8859-13"); 912 fJava2IANAMap.put("ISO8859_15", "ISO-8859-15"); 913 fJava2IANAMap.put("ISO8859_15_FDIS", "ISO-8859-15"); 914 fJava2IANAMap.put("Big5", "BIG5"); 915 fJava2IANAMap.put("CP037", "EBCDIC-CP-US"); 916 fJava2IANAMap.put("CP273", "IBM273"); 917 fJava2IANAMap.put("CP277", "EBCDIC-CP-DK"); 918 fJava2IANAMap.put("CP278", "EBCDIC-CP-FI"); 919 fJava2IANAMap.put("CP280", "EBCDIC-CP-IT"); 920 fJava2IANAMap.put("CP284", "EBCDIC-CP-ES"); 921 fJava2IANAMap.put("CP285", "EBCDIC-CP-GB"); 922 fJava2IANAMap.put("CP290", "EBCDIC-JP-KANA"); 923 fJava2IANAMap.put("CP297", "EBCDIC-CP-FR"); 924 fJava2IANAMap.put("CP420", "EBCDIC-CP-AR1"); 925 fJava2IANAMap.put("CP424", "EBCDIC-CP-HE"); 926 fJava2IANAMap.put("CP437", "IBM437"); 927 fJava2IANAMap.put("CP500", "EBCDIC-CP-CH"); 928 fJava2IANAMap.put("CP775", "IBM775"); 929 fJava2IANAMap.put("CP850", "IBM850"); 930 fJava2IANAMap.put("CP852", "IBM852"); 931 fJava2IANAMap.put("CP855", "IBM855"); 932 fJava2IANAMap.put("CP857", "IBM857"); 933 fJava2IANAMap.put("CP858", "IBM00858"); 934 fJava2IANAMap.put("CP860", "IBM860"); 935 fJava2IANAMap.put("CP861", "IBM861"); 936 fJava2IANAMap.put("CP862", "IBM862"); 937 fJava2IANAMap.put("CP863", "IBM863"); 938 fJava2IANAMap.put("CP864", "IBM864"); 939 fJava2IANAMap.put("CP865", "IBM865"); 940 fJava2IANAMap.put("CP866", "IBM866"); 941 fJava2IANAMap.put("CP868", "IBM868"); 942 fJava2IANAMap.put("CP869", "IBM869"); 943 fJava2IANAMap.put("CP870", "EBCDIC-CP-ROECE"); 944 fJava2IANAMap.put("CP871", "EBCDIC-CP-IS"); 945 fJava2IANAMap.put("CP918", "EBCDIC-CP-AR2"); 946 fJava2IANAMap.put("CP924", "IBM00924"); 947 fJava2IANAMap.put("CP1026", "IBM1026"); 948 fJava2IANAMap.put("Cp01140", "IBM01140"); 949 fJava2IANAMap.put("Cp01141", "IBM01141"); 950 fJava2IANAMap.put("Cp01142", "IBM01142"); 951 fJava2IANAMap.put("Cp01143", "IBM01143"); 952 fJava2IANAMap.put("Cp01144", "IBM01144"); 953 fJava2IANAMap.put("Cp01145", "IBM01145"); 954 fJava2IANAMap.put("Cp01146", "IBM01146"); 955 fJava2IANAMap.put("Cp01147", "IBM01147"); 956 fJava2IANAMap.put("Cp01148", "IBM01148"); 957 fJava2IANAMap.put("Cp01149", "IBM01149"); 958 fJava2IANAMap.put("EUCJIS", "EUC-JP"); 959 fJava2IANAMap.put("KS_C_5601-1987", "KS_C_5601-1987"); 960 fJava2IANAMap.put("GB2312", "GB2312"); 961 fJava2IANAMap.put("ISO2022KR", "ISO-2022-KR"); 962 fJava2IANAMap.put("ISO2022CN", "ISO-2022-CN"); 963 fJava2IANAMap.put("JIS", "ISO-2022-JP"); 964 fJava2IANAMap.put("KOI8_R", "KOI8-R"); 965 fJava2IANAMap.put("KSC5601", "EUC-KR"); 966 fJava2IANAMap.put("GB18030", "GB18030"); 967 fJava2IANAMap.put("GBK", "GBK"); 968 fJava2IANAMap.put("SJIS", "SHIFT_JIS"); 969 fJava2IANAMap.put("MS932", "WINDOWS-31J"); 970 fJava2IANAMap.put("UTF8", "UTF-8"); 971 fJava2IANAMap.put("Unicode", "UTF-16"); 972 fJava2IANAMap.put("UnicodeBig", "UTF-16BE"); 973 fJava2IANAMap.put("UnicodeLittle", "UTF-16LE"); 974 fJava2IANAMap.put("JIS0201", "X0201"); 975 fJava2IANAMap.put("JIS0208", "X0208"); 976 fJava2IANAMap.put("JIS0212", "ISO-IR-159"); 977 978 fJava2IANAMap.put("CP1047", "IBM1047"); 980 981 } 983 987 988 public EncodingMap() {} 989 990 994 1000 public static void putIANA2JavaMapping(String ianaEncoding, 1001 String javaEncoding) { 1002 fIANA2JavaMap.put(ianaEncoding, javaEncoding); 1003 } 1005 1010 public static String getIANA2JavaMapping(String ianaEncoding) { 1011 return (String )fIANA2JavaMap.get(ianaEncoding); 1012 } 1014 1019 public static String removeIANA2JavaMapping(String ianaEncoding) { 1020 return (String )fIANA2JavaMap.remove(ianaEncoding); 1021 } 1023 1029 public static void putJava2IANAMapping(String javaEncoding, 1030 String ianaEncoding) { 1031 fJava2IANAMap.put(javaEncoding, ianaEncoding); 1032 } 1034 1039 public static String getJava2IANAMapping(String javaEncoding) { 1040 return (String )fJava2IANAMap.get(javaEncoding); 1041 } 1043 1048 public static String removeJava2IANAMapping(String javaEncoding) { 1049 return (String )fJava2IANAMap.remove(javaEncoding); 1050 } 1052} | Popular Tags |