DataMatrixBaseCompactor.java
895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.pmp.datamatrixpmp;
import com.adobe.xfa.pmp.datamatrixpmp.DataMatrixInfo;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
abstract class DataMatrixBaseCompactor {
List<Integer> m_codeWords = new ArrayList<Integer>();
int m_symbolSize = -1;
boolean m_valid;
DataMatrixBaseCompactor() {
}
void getCodeWords(List<Integer> codeWords) {
codeWords.addAll(this.m_codeWords);
}
boolean isValid() {
return this.m_valid;
}
int getSymbolSize() {
return this.m_symbolSize;
}
int findSymbolSize(int codeWordSize) {
for (int idx = 0; idx < DataMatrixInfo.Sizes.NUM_SQUARE_SIZES.value; ++idx) {
if (codeWordSize > DataMatrixInfo.DATA_SYMBOLS[idx]) continue;
return idx;
}
return -1;
}
}