diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2022-06-21 13:59:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 13:59:11 +0200 |
commit | 8c8c26226af81cc95a7ecf562870dcfab235c5a3 (patch) | |
tree | f35942ea0178773fa761a78b64a50884a28361d4 | |
parent | Merge pull request #52 from UnionInternationalCheminsdeFer/address-SonarLint-Blockers (diff) | |
parent | missing language code in the U_HEAD corrected internally. (diff) | |
download | UIC-barcode-8c8c26226af81cc95a7ecf562870dcfab235c5a3.tar UIC-barcode-8c8c26226af81cc95a7ecf562870dcfab235c5a3.tar.gz UIC-barcode-8c8c26226af81cc95a7ecf562870dcfab235c5a3.tar.bz2 UIC-barcode-8c8c26226af81cc95a7ecf562870dcfab235c5a3.tar.lz UIC-barcode-8c8c26226af81cc95a7ecf562870dcfab235c5a3.tar.xz UIC-barcode-8c8c26226af81cc95a7ecf562870dcfab235c5a3.tar.zst UIC-barcode-8c8c26226af81cc95a7ecf562870dcfab235c5a3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java b/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java index 492656a..22ba8ce 100644 --- a/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java +++ b/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java @@ -245,8 +245,20 @@ public class UHEADDataRecord extends DataRecord{ String flagsElement = String.format("%01d",this.flags);
+ String language1 = null;
+ String language2 = null;
+ if (this.language != null) {
+ language1 = String.format("%2s" ,this.language);
+ } else {
+ language1 = " ";
+ }
+ if (this.additionalLanguage != null) {
+ language2 = String.format("%2s" ,this.additionalLanguage);
+ } else {
+ language2 = " ";
+ }
- String languageElement = String.format("%2s%2s" ,this.language, this.additionalLanguage);
+ String languageElement = language1 + language2;
try {
|