Skip to content

Commit 23625e5

Browse files
authored
Merge pull request #28 from aspose-barcode/main
API Update
2 parents 2321f6d + 475b871 commit 23625e5

File tree

32 files changed

+185
-1566
lines changed

32 files changed

+185
-1566
lines changed

english/androidjava/com.aspose.barcode.barcoderecognition/barcodereader/_index.md

Lines changed: 35 additions & 35 deletions
Large diffs are not rendered by default.

english/androidjava/com.aspose.barcode.barcoderecognition/barcoderesult/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Stores recognized barcode data like SingleDecodeType type, string codetext,
1919
> ```
2020
> This sample shows how to obtain BarCodeResult.
2121
>
22-
> BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128, "12345");
22+
> BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.CODE_128, "12345");
2323
> generator.save("test.png");
24-
> BarCodeReader reader = new BarCodeReader("test.png", DecodeType.CODE_39_STANDARD, DecodeType.CODE_128);
24+
> BarCodeReader reader = new BarCodeReader("test.png", DecodeType.CODE_39, DecodeType.CODE_128);
2525
> for(BarCodeResult result : reader.readBarCodes())
2626
> {
2727
> System.out.println("BarCode Type: " + result.getCodeTypeName());

english/androidjava/com.aspose.barcode.barcoderecognition/basedecodetype/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Base class for MultyDecodeType and SingleDecodeType.
2323
> This sample shows how to use BaseDecodeType with SingleDecodeType and MultyDecodeType
2424
>
2525
> BaseDecodeType decodeOne = DecodeType.CODE_128;
26-
> BaseDecodeType decodeTwo = new MultyDecodeType(DecodeType.CODE_128, DecodeType.CODE_39_STANDARD, DecodeType.CODE_39_EXTENDED);
26+
> BaseDecodeType decodeTwo = new MultyDecodeType(DecodeType.CODE_128, DecodeType.CODE_39, DecodeType.CODE_39_FULL_ASCII);
2727
> ```
2828
## Methods
2929

english/androidjava/com.aspose.barcode.barcoderecognition/code128dataportioninternal/_index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public class Code128DataPortionInternal
2626
| [hashCode()](#hashCode--) | |
2727
| [notify()](#notify--) | |
2828
| [notifyAll()](#notifyAll--) | |
29+
| [setData(Code128DataPortion code128DataPortion, String value)](#setData-com.aspose.barcode.barcoderecognition.Code128DataPortion-java.lang.String-) | |
2930
| [toString()](#toString--) | |
3031
| [wait()](#wait--) | |
3132
| [wait(long arg0)](#wait-long-) | |
@@ -103,6 +104,20 @@ public final native void notifyAll()
103104

104105

105106

107+
### setData(Code128DataPortion code128DataPortion, String value) {#setData-com.aspose.barcode.barcoderecognition.Code128DataPortion-java.lang.String-}
108+
```
109+
public static void setData(Code128DataPortion code128DataPortion, String value)
110+
```
111+
112+
113+
114+
115+
**Parameters:**
116+
| Parameter | Type | Description |
117+
| --- | --- | --- |
118+
| code128DataPortion | [Code128DataPortion](../../com.aspose.barcode.barcoderecognition/code128dataportion) | |
119+
| value | java.lang.String | |
120+
106121
### toString() {#toString--}
107122
```
108123
public String toString()

english/androidjava/com.aspose.barcode.barcoderecognition/decodetype/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Specify the type of barcode to read.
1919
> ```
2020
> This sample shows how to detect Code39 and Code128 barcodes.
2121
>
22-
> BarCodeReader reader = new BarCodeReader("test.png", DecodeType.CODE_39_STANDARD, DecodeType.CODE_128);
22+
> BarCodeReader reader = new BarCodeReader("test.png", DecodeType.CODE_39, DecodeType.CODE_128);
2323
> for(BarCodeResult result : reader.readBarCodes())
2424
> {
2525
> System.out.println("BarCode Type: " + result.getCodeTypeName());

english/androidjava/com.aspose.barcode.barcoderecognition/maxicodeextendedparameters/_index.md

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Stores a MaxiCode additional information of recognized barcode
1717

1818
| Method | Description |
1919
| --- | --- |
20-
| [equals(Object obj)](#equals-java.lang.Object-) | Returns a value indicating whether this instance is equal to a specified value. |
20+
| [equals(Object obj)](#equals-java.lang.Object-) | Returns a value indicating whether this instance is equal to a specified MaxiCodeExtendedParameters value. |
2121
| [getClass()](#getClass--) | |
2222
| [getHashCode()](#getHashCode--) | Returns the hash code for this instance. |
2323
| [getMaxiCodeMode()](#getMaxiCodeMode--) | Gets a MaxiCode encode mode. |
@@ -27,10 +27,7 @@ Stores a MaxiCode additional information of recognized barcode
2727
| [isEmpty()](#isEmpty--) | Tests whether all parameters has only default values |
2828
| [notify()](#notify--) | |
2929
| [notifyAll()](#notifyAll--) | |
30-
| [setMaxiCodeMode(int maxiCodeMode)](#setMaxiCodeMode-int-) | Sets a MaxiCode encode mode. |
31-
| [setMaxiCodeStructuredAppendModeBarcodeId(int value)](#setMaxiCodeStructuredAppendModeBarcodeId-int-) | Sets a MaxiCode barcode id in structured append mode. |
32-
| [setMaxiCodeStructuredAppendModeBarcodesCount(int value)](#setMaxiCodeStructuredAppendModeBarcodesCount-int-) | Sets a MaxiCode barcodes count in structured append mode. |
33-
| [toString()](#toString--) | Returns a human-readable string representation of this . |
30+
| [toString()](#toString--) | Returns a human-readable string representation of this MaxiCodeExtendedParameters . |
3431
| [wait()](#wait--) | |
3532
| [wait(long arg0)](#wait-long-) | |
3633
| [wait(long arg0, int arg1)](#wait-long-int-) | |
@@ -40,7 +37,7 @@ public boolean equals(Object obj)
4037
```
4138

4239

43-
Returns a value indicating whether this instance is equal to a specified value.
40+
Returns a value indicating whether this instance is equal to a specified MaxiCodeExtendedParameters value.
4441

4542
**Parameters:**
4643
| Parameter | Type | Description |
@@ -137,55 +134,16 @@ public final native void notifyAll()
137134

138135

139136

140-
### setMaxiCodeMode(int maxiCodeMode) {#setMaxiCodeMode-int-}
141-
```
142-
public void setMaxiCodeMode(int maxiCodeMode)
143-
```
144-
145-
146-
Sets a MaxiCode encode mode. Default value: Mode4
147-
148-
**Parameters:**
149-
| Parameter | Type | Description |
150-
| --- | --- | --- |
151-
| maxiCodeMode | int | |
152-
153-
### setMaxiCodeStructuredAppendModeBarcodeId(int value) {#setMaxiCodeStructuredAppendModeBarcodeId-int-}
154-
```
155-
public void setMaxiCodeStructuredAppendModeBarcodeId(int value)
156-
```
157-
158-
159-
Sets a MaxiCode barcode id in structured append mode. Default value: 0
160-
161-
**Parameters:**
162-
| Parameter | Type | Description |
163-
| --- | --- | --- |
164-
| value | int | |
165-
166-
### setMaxiCodeStructuredAppendModeBarcodesCount(int value) {#setMaxiCodeStructuredAppendModeBarcodesCount-int-}
167-
```
168-
public void setMaxiCodeStructuredAppendModeBarcodesCount(int value)
169-
```
170-
171-
172-
Sets a MaxiCode barcodes count in structured append mode. Default value: -1
173-
174-
**Parameters:**
175-
| Parameter | Type | Description |
176-
| --- | --- | --- |
177-
| value | int | |
178-
179137
### toString() {#toString--}
180138
```
181139
public String toString()
182140
```
183141

184142

185-
Returns a human-readable string representation of this .
143+
Returns a human-readable string representation of this MaxiCodeExtendedParameters .
186144

187145
**Returns:**
188-
java.lang.String - A string that represents this .
146+
java.lang.String - A string that represents this MaxiCodeExtendedParameters .
189147
### wait() {#wait--}
190148
```
191149
public final void wait()

english/androidjava/com.aspose.barcode.barcoderecognition/multydecodetype/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Composite decode type.
2020
> CreateThis sample shows how to create compound MultyDecode types that combine SingleDecodeType and MultiDecode types.
2121
>
2222
> MultyDecodeType types1 = new MultyDecodeType(DecodeType.QR, DecodeType.DATA_MATRIX);
23-
> MultyDecodeType types2 = new MultyDecodeType(types1, DecodeType.CODE_128, DecodeType.CODE_39_STANDARD);
23+
> MultyDecodeType types2 = new MultyDecodeType(types1, DecodeType.CODE_128, DecodeType.CODE_39);
2424
> ```
2525
## Constructors
2626

english/androidjava/com.aspose.barcode.complexbarcode/hibcliccombinedcodetext/_index.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,19 @@ Class for encoding and decoding the text embedded in the HIBC LIC code which sto
3434
> combinedCodetext.getSecondaryAndAdditionalData().setSerialNumber("SERIAL123");
3535
> combinedCodetext.getSecondaryAndAdditionalData().setDateOfManufacture(new Date());
3636
> ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(combinedCodetext);
37-
> {
38-
> Bitmap image = generator.generateBarCodeImage();
39-
> BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC);
40-
> {
41-
> reader.readBarCodes();
42-
> String codetext = reader.getFoundBarCodes()[0].getCodeText();
43-
> HIBCLICCombinedCodetext result = (HIBCLICCombinedCodetext)ComplexCodetextReader.tryDecodeHIBCLIC(codetext);
44-
> System.out.println("Product or catalog number: " + result.getPrimaryData().getProductOrCatalogNumber());
45-
> System.out.println("Labeler identification code: " + result.getPrimaryData().getLabelerIdentificationCode());
46-
> System.out.println("Unit of measure ID: " + result.getPrimaryData().getUnitOfMeasureID());
47-
> System.out.println("Expiry date: " + result.getSecondaryAndAdditionalData().getExpiryDate());
48-
> System.out.println("Quantity: " + result.getSecondaryAndAdditionalData().getQuantity());
49-
> System.out.println("Lot number: " + result.getSecondaryAndAdditionalData().getLotNumber());
50-
> System.out.println("Serial number: " + result.getSecondaryAndAdditionalData().getSerialNumber());
51-
> System.out.println("Date of manufacture: " + result.getSecondaryAndAdditionalData().getDateOfManufacture());
52-
> }
53-
> }
37+
> BufferedImage image = generator.generateBarCodeImage();
38+
> BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC);
39+
> reader.readBarCodes();
40+
> String codetext = reader.getFoundBarCodes()[0].getCodeText();
41+
> HIBCLICCombinedCodetext result = (HIBCLICCombinedCodetext)ComplexCodetextReader.tryDecodeHIBCLIC(codetext);
42+
> System.out.println("Product or catalog number: " + result.getPrimaryData().getProductOrCatalogNumber());
43+
> System.out.println("Labeler identification code: " + result.getPrimaryData().getLabelerIdentificationCode());
44+
> System.out.println("Unit of measure ID: " + result.getPrimaryData().getUnitOfMeasureID());
45+
> System.out.println("Expiry date: " + result.getSecondaryAndAdditionalData().getExpiryDate());
46+
> System.out.println("Quantity: " + result.getSecondaryAndAdditionalData().getQuantity());
47+
> System.out.println("Lot number: " + result.getSecondaryAndAdditionalData().getLotNumber());
48+
> System.out.println("Serial number: " + result.getSecondaryAndAdditionalData().getSerialNumber());
49+
> System.out.println("Date of manufacture: " + result.getSecondaryAndAdditionalData().getDateOfManufacture());
5450
> ```
5551
## Constructors
5652

english/androidjava/com.aspose.barcode.complexbarcode/hibclicprimarydatacodetext/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ Class for encoding and decoding the text embedded in the HIBC LIC code which sto
1717
--------------------
1818

1919
> ```
20-
> This sample shows how to encode and decode HIBC LIC using HIBCLICPrimaryCodetext.
20+
> This sample shows how to encode and decode HIBC LIC using HIBCLICPrimaryDataCodetext.
2121
>
22-
> HIBCLICPrimaryCodetext complexCodetext = new HIBCLICPrimaryCodetext();
22+
> HIBCLICPrimaryDataCodetext complexCodetext = new HIBCLICPrimaryDataCodetext();
2323
> complexCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC);
2424
> complexCodetext.setData(new PrimaryData());
2525
> complexCodetext.getData().setProductOrCatalogNumber("12345");
2626
> complexCodetext.getData().setLabelerIdentificationCode("A999");
2727
> complexCodetext.getData().setUnitOfMeasureID(1);
2828
> ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(complexCodetext);
2929
> {
30-
> Bitmap image = generator.generateBarCodeImage();
30+
> BufferedImage image = generator.generateBarCodeImage();
3131
> BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC);
3232
> {
3333
> reader.readBarCodes();
34-
> String codetext = reader.getFoundBarCodes()[0].getCodeText();
34+
> HIBCLICPrimaryCodetext result = (HIBCLICPrimaryCodetext)ComplexCodetextReader.TryDecodeHIBCLIC(codetext);
3535
> HIBCLICPrimaryCodetext result = (HIBCLICPrimaryCodetext)ComplexCodetextReader.tryDecodeHIBCLIC(codetext);
3636
> System.out.println("Product or catalog number: " + result.getData().getProductOrCatalogNumber());
3737
> System.out.println("Labeler identification code: " + result.getData().getLabelerIdentificationCode());

english/androidjava/com.aspose.barcode.complexbarcode/maxicodecodetextmode2/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Class for encoding and decoding the text embedded in the MaxiCode code for modes
2525
maxiCodeCodetext.setSecondMessage(maxiCodeStandartSecondMessage);
2626
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext);
2727
complexGenerator.generateBarCodeImage();
28-
28+
2929
//Mode 2 with structured second message
3030
MaxiCodeCodetextMode2 maxiCodeCodetext = new MaxiCodeCodetextMode2();
3131
maxiCodeCodetext.setPostalCode("524032140");
@@ -39,9 +39,9 @@ Class for encoding and decoding the text embedded in the MaxiCode code for modes
3939
maxiCodeCodetext.setSecondMessage(maxiCodeStructuredSecondMessage);
4040
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext);
4141
complexGenerator.generateBarCodeImage();
42-
42+
4343
//Decoding raw codetext with standart second message
44-
BarCodeReader reader = new BarCodeReader("test.png", DecodeType.MAXI_CODE);
44+
BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.MAXI_CODE);
4545
{
4646
for (BarCodeResult result : reader.readBarCodes())
4747
{
@@ -60,7 +60,7 @@ Class for encoding and decoding the text embedded in the MaxiCode code for modes
6060
}
6161
}
6262
//Decoding raw codetext with structured second message
63-
BarCodeReader reader = new BarCodeReader("test.png", DecodeType.MAXI_CODE);
63+
BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.MAXI_CODE);
6464
{
6565
for(BarCodeResult result : reader.readBarCodes())
6666
{

0 commit comments

Comments
 (0)