mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
Update BlackBerry plugins for Cordova 1.6.
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
*
|
||||
* Copyright (c) 2011, IBM Corporation
|
||||
*/
|
||||
package com.phonegap.plugins.barcodescanner;
|
||||
package org.apache.cordova.plugins.barcodescanner;
|
||||
|
||||
import net.rim.device.api.ui.UiApplication;
|
||||
|
||||
import com.phonegap.api.Plugin;
|
||||
import com.phonegap.api.PluginResult;
|
||||
import com.phonegap.json4j.JSONArray;
|
||||
import org.apache.cordova.api.Plugin;
|
||||
import org.apache.cordova.api.PluginResult;
|
||||
import org.apache.cordova.json4j.JSONArray;
|
||||
|
||||
/**
|
||||
* The BarcodeScanner plugin interface.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* Copyright (c) 2011, IBM Corporation
|
||||
*/
|
||||
package com.phonegap.plugins.barcodescanner;
|
||||
package org.apache.cordova.plugins.barcodescanner;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
@@ -13,9 +13,9 @@ import net.rim.device.api.io.Base64OutputStream;
|
||||
import net.rim.device.api.system.Bitmap;
|
||||
import net.rim.device.api.system.PNGEncodedImage;
|
||||
|
||||
import com.phonegap.api.PluginResult;
|
||||
import com.phonegap.json4j.JSONArray;
|
||||
import com.phonegap.json4j.JSONException;
|
||||
import org.apache.cordova.api.PluginResult;
|
||||
import org.apache.cordova.json4j.JSONArray;
|
||||
import org.apache.cordova.json4j.JSONException;
|
||||
|
||||
/**
|
||||
* Handles the common code for the barcode encode action. Implements argument
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* file to work on BlackBerry.
|
||||
*/
|
||||
// BB: Package the file local to the plugin.
|
||||
package com.phonegap.plugins.barcodescanner;
|
||||
package org.apache.cordova.plugins.barcodescanner;
|
||||
|
||||
import javax.microedition.amms.control.camera.ExposureControl;
|
||||
import javax.microedition.amms.control.camera.FocusControl;
|
||||
|
||||
@@ -4,17 +4,17 @@
|
||||
*
|
||||
* Copyright (c) 2011, IBM Corporation
|
||||
*/
|
||||
package com.phonegap.plugins.barcodescanner;
|
||||
package org.apache.cordova.plugins.barcodescanner;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
import net.rim.device.api.system.Bitmap;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.BarcodeFormat;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.EncodeHintType;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.MultiFormatWriter;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.WriterException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.BarcodeFormat;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.EncodeHintType;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.MultiFormatWriter;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.WriterException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
|
||||
/**
|
||||
* BlackBerry OS 5 specific class containing barcode encoding related methods.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# ZXing code for PhoneGap #
|
||||
# ZXing code for Cordova #
|
||||
|
||||
This directory contains a copy of the source used to build the ZXing library for use in OS 5 implementation. The original ZXing source was simply repackaged under the `com.phonegap.plugins.barcodescanner` package prefix in order to work around class naming conflicts.
|
||||
This directory contains a copy of the source used to build the ZXing library for use in OS 5 implementation. The original ZXing source was simply repackaged under the `org.apache.cordova.plugins.barcodescanner` package prefix in order to work around class naming conflicts.
|
||||
|
||||
## Building an updated ZXing jar for OS 5 support ##
|
||||
|
||||
@@ -9,7 +9,7 @@ The barcode scanner plugin provides a precompiled version of the ZXing code for
|
||||
1. Download the desired level of code from ZXing (http://code.google.com/p/zxing/downloads/list).
|
||||
2. Extract the zip file of source.
|
||||
3. Open a command window where the source was extracted and change directory to the "core" directory.
|
||||
4. Refactor the source code contained in the core directory to prefix all the packages and packages references with `com.phonegap.plugins.barcodescanner`.
|
||||
4. Refactor the source code contained in the core directory to prefix all the packages and packages references with `org.apache.cordova.plugins.barcodescanner`.
|
||||
4. Execute `ant build` (or ant build-no-debug) on the command line to build the core.jar (requires Apache Ant).
|
||||
5. Run preverify on the generated core.jar. The preverify.exe can be found in the BlackBerry WebWorks SDK installation folder (<BBWW_SDK>) under the "bin" folder.
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitArray;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitArray;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
|
||||
/**
|
||||
* This class hierarchy provides a set of methods to convert luminance data to 1 bit data.
|
||||
@@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitArray;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitArray;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
|
||||
/**
|
||||
* This class is the core bitmap class used by ZXing to represent 1 bit data. Reader objects
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
/**
|
||||
* Thrown when a barcode was successfully detected and decoded, but
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
/**
|
||||
* Encapsulates a type of hint that a caller may pass to a barcode reader to help it
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
/**
|
||||
* These are a set of hints that you may pass to Writers to specify their behavior.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
/**
|
||||
* Thrown when a barcode was successfully detected, but some aspect of
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
/**
|
||||
* The purpose of this class hierarchy is to abstract different bitmap implementations across
|
||||
@@ -14,17 +14,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.aztec.AztecReader;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.datamatrix.DataMatrixReader;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.oned.MultiFormatOneDReader;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.pdf417.PDF417Reader;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.qrcode.QRCodeReader;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.aztec.AztecReader;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.datamatrix.DataMatrixReader;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.oned.MultiFormatOneDReader;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.pdf417.PDF417Reader;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.qrcode.QRCodeReader;
|
||||
|
||||
/**
|
||||
* MultiFormatReader is a convenience class and the main entry point into the library for most uses.
|
||||
* By default it attempts to decode all barcode formats that the library supports. Optionally, you
|
||||
@@ -14,19 +14,20 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.oned.Code128Writer;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.oned.Code39Writer;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.oned.EAN13Writer;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.oned.EAN8Writer;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.oned.ITFWriter;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.oned.UPCAWriter;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.qrcode.QRCodeWriter;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.oned.Code128Writer;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.oned.Code39Writer;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.oned.EAN13Writer;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.oned.EAN8Writer;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.oned.ITFWriter;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.oned.UPCAWriter;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.qrcode.QRCodeWriter;
|
||||
|
||||
/**
|
||||
* This is a factory class which finds the appropriate Writer subclass for the BarcodeFormat
|
||||
* requested and encodes the barcode with the supplied contents.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
/**
|
||||
* Thrown when a barcode was not found in the image. It might have been
|
||||
@@ -14,17 +14,17 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
/**
|
||||
* Implementations of this interface can decode an image of a barcode in some format into
|
||||
* the String it encodes. For example, {@link com.phonegap.plugins.barcodescanner.google.zxing.qrcode.QRCodeReader} can
|
||||
* the String it encodes. For example, {@link org.apache.cordova.plugins.barcodescanner.google.zxing.qrcode.QRCodeReader} can
|
||||
* decode a QR code. The decoder may optionally receive hints from the caller which may help
|
||||
* it decode more quickly or accurately.
|
||||
*
|
||||
* See {@link com.phonegap.plugins.barcodescanner.google.zxing.MultiFormatReader}, which attempts to determine what barcode
|
||||
* See {@link org.apache.cordova.plugins.barcodescanner.google.zxing.MultiFormatReader}, which attempts to determine what barcode
|
||||
* format is present within the image as well, and then decodes it accordingly.
|
||||
*
|
||||
* @author Sean Owen
|
||||
@@ -46,7 +46,7 @@ public interface Reader {
|
||||
* hints, each possibly associated to some data, which may help the implementation decode.
|
||||
*
|
||||
* @param image image of barcode to decode
|
||||
* @param hints passed as a {@link java.util.Hashtable} from {@link com.phonegap.plugins.barcodescanner.google.zxing.DecodeHintType}
|
||||
* @param hints passed as a {@link java.util.Hashtable} from {@link org.apache.cordova.plugins.barcodescanner.google.zxing.DecodeHintType}
|
||||
* to arbitrary data. The
|
||||
* meaning of the data depends upon the hint type. The implementation may or may not do
|
||||
* anything with these hints.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
/**
|
||||
* The general exception class throw when something goes wrong during decoding of a barcode.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
import java.util.Enumeration;
|
||||
import java.util.Hashtable;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
/**
|
||||
* <p>Encapsulates a point of interest in an image containing a barcode. Typically, this
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
/**
|
||||
* Callback which is invoked when a possible result point (significant
|
||||
@@ -14,12 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
|
||||
/**
|
||||
* The base class for all objects which encode/generate a barcode image.
|
||||
*
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing;
|
||||
|
||||
/**
|
||||
* A base class which covers the range of exceptions which may occur when encoding a barcode using
|
||||
@@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.aztec;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.aztec;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.DetectorResult;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.DetectorResult;
|
||||
|
||||
public final class AztecDetectorResult extends DetectorResult {
|
||||
|
||||
@@ -14,25 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.aztec;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.aztec;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.BarcodeFormat;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.BinaryBitmap;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ChecksumException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.DecodeHintType;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Reader;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ResultMetadataType;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ResultPointCallback;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.aztec.decoder.Decoder;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.aztec.detector.Detector;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.DecoderResult;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.BarcodeFormat;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.BinaryBitmap;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ChecksumException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.DecodeHintType;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Reader;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ResultMetadataType;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ResultPointCallback;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.aztec.decoder.Decoder;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.aztec.detector.Detector;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.DecoderResult;
|
||||
|
||||
/**
|
||||
* This implementation can detect and decode Aztec codes in an image.
|
||||
*
|
||||
@@ -14,15 +14,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.aztec.decoder;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.aztec.decoder;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.aztec.AztecDetectorResult;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.DecoderResult;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon.GenericGF;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon.ReedSolomonDecoder;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon.ReedSolomonException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.aztec.AztecDetectorResult;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.DecoderResult;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon.GenericGF;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon.ReedSolomonDecoder;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon.ReedSolomonException;
|
||||
|
||||
/**
|
||||
* <p>The main class which implements Aztec Code decoding -- as opposed to locating and extracting
|
||||
@@ -14,17 +14,17 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.aztec.detector;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.aztec.detector;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.aztec.AztecDetectorResult;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.GridSampler;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.detector.WhiteRectangleDetector;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon.GenericGF;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon.ReedSolomonDecoder;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon.ReedSolomonException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.aztec.AztecDetectorResult;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.GridSampler;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.detector.WhiteRectangleDetector;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon.GenericGF;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon.ReedSolomonDecoder;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon.ReedSolomonException;
|
||||
|
||||
/**
|
||||
* <p>Encapsulates logic that can detect an Aztec Code in an image, even if the Aztec Code
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* <p>See
|
||||
@@ -14,12 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Implements KDDI AU's address book format. See
|
||||
* <a href="http://www.au.kddi.com/ezfactory/tec/two_dimensions/index.html">
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Implements the "MECARD" address book entry format.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* @author Sean Owen
|
||||
@@ -14,12 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Implements the "BIZCARD" address book entry format, though this has been
|
||||
* largely reverse-engineered from examples observed in the wild -- still
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* @author Sean Owen
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* @author Sean Owen
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* @author Sean Owen
|
||||
@@ -14,12 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Represents a result that encodes an e-mail address, either as a plain address
|
||||
* like "joe@example.org" or a mailto: URL like "mailto:joe@example.org".
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Implements the "MATMSG" email message entry format.
|
||||
@@ -24,7 +24,7 @@
|
||||
* http://www.piramidepse.com/
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
@@ -24,12 +24,13 @@
|
||||
* http://www.piramidepse.com/
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.BarcodeFormat;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.BarcodeFormat;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
|
||||
/**
|
||||
* Parses strings of digits that represent a RSS Extended code.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* @author Sean Owen
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Parses a "geo:" URI result, which specifies a location on the surface of
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* @author jbreiden@google.com (Jeff Breidenbach)
|
||||
@@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.BarcodeFormat;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.BarcodeFormat;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Parses strings of digits that represent a ISBN.
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* <p>Abstract class representing the result of decoding a barcode, as more than
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* Represents the type of data encoded by a barcode -- from plain text, to a
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* @author dswitkin@google.com (Daniel Switkin)
|
||||
@@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.BarcodeFormat;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.oned.UPCEReader;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.BarcodeFormat;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.oned.UPCEReader;
|
||||
|
||||
/**
|
||||
* Parses strings of digits that represent a UPC code.
|
||||
@@ -14,17 +14,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* <p>Abstract class representing the result of decoding a barcode, as more than
|
||||
* a String -- as some type of structured data. This might be a subclass which represents
|
||||
* a URL, or an e-mail address. {@link #parseResult(com.phonegap.plugins.barcodescanner.google.zxing.Result)} will turn a raw
|
||||
* a URL, or an e-mail address. {@link #parseResult(org.apache.cordova.plugins.barcodescanner.google.zxing.Result)} will turn a raw
|
||||
* decoded string into the most appropriate type of structured representation.</p>
|
||||
*
|
||||
* <p>Thanks to Jeff Griffin for proposing rewrite of these classes that relies less
|
||||
@@ -14,13 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* <p>Parses an "sms:" URI result, which specifies a number to SMS.
|
||||
* See <a href="http://tools.ietf.org/html/rfc5724"> RFC 5724</a> on this.</p>
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* @author Sean Owen
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* <p>Parses an "smsto:" URI result, whose format is not standardized but appears to be like:
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* <p>Parses an "smtp:" URI result, whose format is not standardized but appears to be like:
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* @author Sean Owen
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Parses a "tel:" URI result, which specifies a phone number.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* A simple result type encapsulating a string that has no further
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* @author Sean Owen
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Tries to parse results that are a URI of some kind.
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Parses the "URLTO" result format, which is of the form "URLTO:[title]:[url]".
|
||||
@@ -14,14 +14,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Parses contact information formatted according to the VCard (2.1) format. This is not a complete
|
||||
* implementation but should parse information as commonly encoded in 2D barcodes.
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Partially implements the iCalendar format's "VEVENT" format for specifying a
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
/**
|
||||
* @author Vikram Aggarwal
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* Parses a WIFI configuration string. Strings will be of the form:
|
||||
@@ -14,12 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result.optional;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result.optional;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.client.result.ResultParser;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.client.result.ResultParser;
|
||||
|
||||
/**
|
||||
* <p>Superclass for classes encapsulating results in the NDEF format.
|
||||
* See <a href="http://www.nfc-forum.org/specs/">http://www.nfc-forum.org/specs/</a>.</p>
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result.optional;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result.optional;
|
||||
|
||||
/**
|
||||
* <p>Represents a record in an NDEF message. This class only supports certain types
|
||||
@@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result.optional;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result.optional;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.client.result.ParsedResult;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.client.result.ParsedResultType;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.client.result.ParsedResult;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.client.result.ParsedResultType;
|
||||
|
||||
/**
|
||||
* @author Sean Owen
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result.optional;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result.optional;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* <p>Recognizes an NDEF message that encodes information according to the
|
||||
@@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result.optional;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result.optional;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.client.result.TextParsedResult;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.client.result.TextParsedResult;
|
||||
|
||||
/**
|
||||
* Recognizes an NDEF message that encodes text according to the
|
||||
@@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.client.result.optional;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.client.result.optional;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.client.result.URIParsedResult;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.client.result.URIParsedResult;
|
||||
|
||||
/**
|
||||
* Recognizes an NDEF message that encodes a URI according to the
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
/**
|
||||
* <p>A simple, fast array of bits, represented compactly by an array of ints internally.</p>
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
/**
|
||||
* <p>Represents a 2D matrix of bits. In function arguments below, and throughout the common
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
/**
|
||||
* <p>This provides an easy abstraction to read bits at a time from a sequence of bytes, where the
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
/**
|
||||
* This is merely a clone of <code>Comparator</code> since it is not available in
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
|
||||
/**
|
||||
* @author Sean Owen
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
|
||||
/**
|
||||
* <p>Encapsulates the result of detecting a barcode in an image. This includes the raw
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
/**
|
||||
* Superclass of classes encapsulating types ECIs, according to "Extended Channel Interpretations"
|
||||
@@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Binarizer;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.LuminanceSource;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Binarizer;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.LuminanceSource;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
|
||||
/**
|
||||
* This Binarizer implementation uses the old ZXing global histogram approach. It is suitable
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
|
||||
/**
|
||||
* Implementations of this class can, given locations of finder patterns for a QR code in an
|
||||
@@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Binarizer;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.LuminanceSource;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Binarizer;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.LuminanceSource;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
|
||||
/**
|
||||
* This class implements a local thresholding algorithm, which while slower than the
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
/**
|
||||
* <p>This class implements a perspective transform in two dimensions. Given four source and four
|
||||
@@ -14,11 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.DecodeHintType;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.DecodeHintType;
|
||||
|
||||
|
||||
/**
|
||||
* Common string-related functions.
|
||||
@@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common.detector;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common.detector;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
|
||||
/**
|
||||
* <p>A somewhat generic detector that looks for a barcode-like rectangular region within an image.
|
||||
@@ -94,7 +94,7 @@ public final class MonochromeRectangleDetector {
|
||||
* @param bottom maximum value of y
|
||||
* @param maxWhiteRun maximum run of white pixels that can still be considered to be within
|
||||
* the barcode
|
||||
* @return a {@link com.phonegap.plugins.barcodescanner.google.zxing.ResultPoint} encapsulating the corner that was found
|
||||
* @return a {@link org.apache.cordova.plugins.barcodescanner.google.zxing.ResultPoint} encapsulating the corner that was found
|
||||
* @throws NotFoundException if such a point cannot be found
|
||||
*/
|
||||
private ResultPoint findCornerFromCenter(int centerX, int deltaX, int left, int right,
|
||||
@@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common.detector;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common.detector;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon;
|
||||
|
||||
/**
|
||||
* <p>This class contains utility methods for performing mathematical operations over
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon;
|
||||
|
||||
/**
|
||||
* <p>Represents a polynomial whose coefficients are elements of a GF.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon;
|
||||
|
||||
/**
|
||||
* <p>Implements Reed-Solomon decoding, as the name implies.</p>
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon;
|
||||
|
||||
/**
|
||||
* <p>Thrown when an exception occurs during Reed-Solomon decoding, such as when
|
||||
@@ -14,26 +14,27 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.datamatrix;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.datamatrix;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.BarcodeFormat;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.BinaryBitmap;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ChecksumException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.DecodeHintType;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Reader;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ResultMetadataType;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.DecoderResult;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.DetectorResult;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.datamatrix.decoder.Decoder;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.datamatrix.detector.Detector;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.BarcodeFormat;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.BinaryBitmap;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ChecksumException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.DecodeHintType;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Reader;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ResultMetadataType;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.DecoderResult;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.DetectorResult;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.datamatrix.decoder.Decoder;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.datamatrix.detector.Detector;
|
||||
|
||||
/**
|
||||
* This implementation can detect and decode Data Matrix codes in an image.
|
||||
*
|
||||
@@ -91,8 +92,8 @@ public final class DataMatrixReader implements Reader {
|
||||
* around it. This is a specialized method that works exceptionally fast in this special
|
||||
* case.
|
||||
*
|
||||
* @see com.phonegap.plugins.barcodescanner.google.zxing.pdf417.PDF417Reader#extractPureBits(BitMatrix)
|
||||
* @see com.phonegap.plugins.barcodescanner.google.zxing.qrcode.QRCodeReader#extractPureBits(BitMatrix)
|
||||
* @see org.apache.cordova.plugins.barcodescanner.google.zxing.pdf417.PDF417Reader#extractPureBits(BitMatrix)
|
||||
* @see org.apache.cordova.plugins.barcodescanner.google.zxing.qrcode.QRCodeReader#extractPureBits(BitMatrix)
|
||||
*/
|
||||
private static BitMatrix extractPureBits(BitMatrix image) throws NotFoundException {
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.datamatrix.decoder;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.datamatrix.decoder;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
|
||||
/**
|
||||
* @author bbrown@google.com (Brian Brown)
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.datamatrix.decoder;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.datamatrix.decoder;
|
||||
|
||||
/**
|
||||
* <p>Encapsulates a block of data within a Data Matrix Code. Data Matrix Codes may split their data into
|
||||
@@ -14,15 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.datamatrix.decoder;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.datamatrix.decoder;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitSource;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.DecoderResult;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitSource;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.DecoderResult;
|
||||
|
||||
/**
|
||||
* <p>Data Matrix Codes can encode text as bits in one of several modes, and can use multiple modes
|
||||
* in one Data Matrix Code. This class decodes the bits back into text.</p>
|
||||
@@ -14,15 +14,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.datamatrix.decoder;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.datamatrix.decoder;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ChecksumException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.DecoderResult;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon.GenericGF;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon.ReedSolomonDecoder;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.reedsolomon.ReedSolomonException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ChecksumException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.DecoderResult;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon.GenericGF;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon.ReedSolomonDecoder;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.reedsolomon.ReedSolomonException;
|
||||
|
||||
/**
|
||||
* <p>The main class which implements Data Matrix Code decoding -- as opposed to locating and extracting
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.datamatrix.decoder;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.datamatrix.decoder;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.FormatException;
|
||||
|
||||
/**
|
||||
* The Version object encapsulates attributes about a particular
|
||||
@@ -14,21 +14,22 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.datamatrix.detector;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.datamatrix.detector;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.Collections;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.Comparator;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.DetectorResult;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.GridSampler;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.common.detector.WhiteRectangleDetector;
|
||||
|
||||
import java.util.Enumeration;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.BitMatrix;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.Collections;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.Comparator;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.DetectorResult;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.GridSampler;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.common.detector.WhiteRectangleDetector;
|
||||
|
||||
/**
|
||||
* <p>Encapsulates logic that can detect a Data Matrix Code in an image, even if the Data Matrix Code
|
||||
* is rotated or skewed, or partially obscured.</p>
|
||||
@@ -14,17 +14,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.multi;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.multi;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.BinaryBitmap;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ChecksumException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Reader;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.BinaryBitmap;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ChecksumException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.FormatException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Reader;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
|
||||
/**
|
||||
* This class attempts to decode a barcode from an image, not by scanning the whole image,
|
||||
* but by scanning subsets of the image. This is important when there may be multiple barcodes in
|
||||
@@ -14,22 +14,23 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.phonegap.plugins.barcodescanner.google.zxing.multi;
|
||||
package org.apache.cordova.plugins.barcodescanner.google.zxing.multi;
|
||||
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.BinaryBitmap;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Reader;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ReaderException;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.Result;
|
||||
import com.phonegap.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.BinaryBitmap;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.NotFoundException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Reader;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ReaderException;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.Result;
|
||||
import org.apache.cordova.plugins.barcodescanner.google.zxing.ResultPoint;
|
||||
|
||||
/**
|
||||
* <p>Attempts to locate multiple barcodes in an image by repeatedly decoding portion of the image.
|
||||
* After one barcode is found, the areas left, above, right and below the barcode's
|
||||
* {@link com.phonegap.plugins.barcodescanner.google.zxing.ResultPoint}s are scanned, recursively.</p>
|
||||
* {@link org.apache.cordova.plugins.barcodescanner.google.zxing.ResultPoint}s are scanned, recursively.</p>
|
||||
*
|
||||
* <p>A caller may want to also employ {@link ByQuadrantReader} when attempting to find multiple
|
||||
* 2D barcodes, like QR Codes, in an image, where the presence of multiple barcodes might prevent
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user