Committed C# port from Mohamad
[zxing.git] / csharp / oned / OneDReader.cs
diff --git a/csharp/oned/OneDReader.cs b/csharp/oned/OneDReader.cs
new file mode 100755 (executable)
index 0000000..d7d0ae4
--- /dev/null
@@ -0,0 +1,41 @@
+/*\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.oned\r
+{\r
+    /**\r
+     * <p>{@link Reader}s which also implement this interface read one-dimensional barcode\r
+     * formats, and expose additional functionality that is specific to this type of barcode.</p>\r
+     *\r
+     * @author Sean Owen\r
+     */\r
+\r
+    using com.google.zxing.common;  \r
+\r
+    public interface OneDReader :Reader\r
+    {\r
+       /**\r
+       * <p>Attempts to decode a one-dimensional barcode format given a single row of\r
+       * an image.</p>\r
+       *\r
+       * @param rowNumber row number from top of the row\r
+       * @param row the black/white pixel data of the row\r
+       * @param hints decode hints\r
+       * @return {@link Result} containing encoded string and start/end of barcode\r
+       * @throws ReaderException if an error occurs or barcode cannot be found\r
+       */\r
+      Result decodeRow(int rowNumber, BitArray row, System.Collections.Hashtable hints);\r
+    \r
+    }\r
+\r
+}
\ No newline at end of file