/ItemID/src/com/ideal/itemid/IntentResult.java
http://eyes-free.googlecode.com/ · Java · 53 lines · 15 code · 8 blank · 30 comment · 0 complexity · f50bba3f8b852fbdc8925ca1a784b5da MD5 · raw file
- /*
- * Copyright 2009 ZXing authors
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
- package com.ideal.itemid;
-
- /**
- * <p>
- * Encapsulates the result of a barcode scan invoked through
- * {@link IntentIntegrator}.
- * </p>
- *
- * @author Sean Owen
- */
- public final class IntentResult {
-
- private final String contents;
-
- private final String formatName;
-
- IntentResult(String contents, String formatName) {
- this.contents = contents;
- this.formatName = formatName;
- }
-
- /**
- * @return raw content of barcode
- */
- public String getContents() {
- return contents;
- }
-
- /**
- * @return name of format, like "QR_CODE", "UPC_A". See
- * <code>BarcodeFormat</code> for more format names.
- */
- public String getFormatName() {
- return formatName;
- }
-
- }