Remove old C# port before committing new one
[zxing.git] / csharp / common / CharacterSetECI.cs
diff --git a/csharp/common/CharacterSetECI.cs b/csharp/common/CharacterSetECI.cs
deleted file mode 100755 (executable)
index 35e0e10..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-/*\r
-* Copyright 2008 ZXing authors\r
-*\r
-* Licensed under the Apache License, Version 2.0 (the "License");\r
-* you may not use this file except in compliance with the License.\r
-* You may obtain a copy of the License at\r
-*\r
-*      http://www.apache.org/licenses/LICENSE-2.0\r
-*\r
-* Unless required by applicable law or agreed to in writing, software\r
-* distributed under the License is distributed on an "AS IS" BASIS,\r
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-* See the License for the specific language governing permissions and\r
-* limitations under the License.\r
-*/\r
-namespace com.google.zxing.common\r
-{\r
-    using System;\r
-    using System.Text;\r
-    using System.Collections;\r
-\r
-    /// <summary> A class which wraps a 2D array of bytes. The default usage is signed. If you want to use it as a\r
-    /// unsigned container, it's up to you to do byteValue & 0xff at each location.\r
-    /// *\r
-    /// JAVAPORT: I'm not happy about the argument ordering throughout the file, as I always like to have\r
-    /// the horizontal component first, but this is for compatibility with the C++ code. The original\r
-    /// code was a 2D array of ints, but since it only ever gets assigned -1, 0, and 1, I'm going to use\r
-    /// less memory and go with bytes.\r
-    /// *\r
-    /// </summary>\r
-    /// <author>  dswitkin@google.com (Daniel Switkin)\r
-    /// \r
-    /// </author>\r
-    public sealed class CharacterSetECI : ECI\r
-    { \r
-        private static Hashtable VALUE_TO_ECI=new Hashtable(29);\r
-        /*static VALUE_TO_ECI = new Hashtable(29){\r
-        // TODO figure out if these values are even right!\r
-        addCharacterSet(0, "Cp437");\r
-        addCharacterSet(1, "ISO8859_1");\r
-        addCharacterSet(2, "Cp437");\r
-        addCharacterSet(3, "ISO8859_1");\r
-        addCharacterSet(4, "ISO8859_2");\r
-        addCharacterSet(5, "ISO8859_3");\r
-        addCharacterSet(6, "ISO8859_4");\r
-        addCharacterSet(7, "ISO8859_5");\r
-        addCharacterSet(8, "ISO8859_6");\r
-        addCharacterSet(9, "ISO8859_7");\r
-        addCharacterSet(10, "ISO8859_8");\r
-        addCharacterSet(11, "ISO8859_9");\r
-        addCharacterSet(12, "ISO8859_10");\r
-        addCharacterSet(13, "ISO8859_11");\r
-        addCharacterSet(15, "ISO8859_13");\r
-        addCharacterSet(16, "ISO8859_14");\r
-        addCharacterSet(17, "ISO8859_15");\r
-        addCharacterSet(18, "ISO8859_16");\r
-        addCharacterSet(20, "SJIS");\r
-      }*/\r
-\r
-      private String encodingName;\r
-     \r
-      private CharacterSetECI(int value, String encodingName):base(value) {\r
-        addCharacterSet(0, "Cp437");\r
-        addCharacterSet(1, "ISO8859_1");\r
-        addCharacterSet(2, "Cp437");\r
-        addCharacterSet(3, "ISO8859_1");\r
-        addCharacterSet(4, "ISO8859_2");\r
-        addCharacterSet(5, "ISO8859_3");\r
-        addCharacterSet(6, "ISO8859_4");\r
-        addCharacterSet(7, "ISO8859_5");\r
-        addCharacterSet(8, "ISO8859_6");\r
-        addCharacterSet(9, "ISO8859_7");\r
-        addCharacterSet(10, "ISO8859_8");\r
-        addCharacterSet(11, "ISO8859_9");\r
-        addCharacterSet(12, "ISO8859_10");\r
-        addCharacterSet(13, "ISO8859_11");\r
-        addCharacterSet(15, "ISO8859_13");\r
-        addCharacterSet(16, "ISO8859_14");\r
-        addCharacterSet(17, "ISO8859_15");\r
-        addCharacterSet(18, "ISO8859_16");\r
-        addCharacterSet(20, "SJIS");\r
-        this.encodingName = encodingName;\r
-      }\r
-\r
-      public String getEncodingName() {\r
-        return encodingName;\r
-      }\r
-\r
-      private static void addCharacterSet(int value, String encodingName) {\r
-        VALUE_TO_ECI.Add(value, new CharacterSetECI(value, encodingName));\r
-      }\r
-\r
-      public static CharacterSetECI getCharacterSetECIByValue(int value) {          \r
-        CharacterSetECI eci = (CharacterSetECI) VALUE_TO_ECI[value];\r
-        if (eci == null) {\r
-          throw new Exception("Unsupported value: " + value);\r
-        }\r
-        return eci;\r
-      }\r
-    }\r
-}
\ No newline at end of file