summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2022-06-09 12:23:56 +0200
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2022-06-09 12:23:56 +0200
commit615dd5283b755617ff810f01136d5c292458e15e (patch)
treed44a69b67c3d2cfe3b29d82b2d3150cb2ff796df /src
parentversion number update (diff)
downloadUIC-barcode-615dd5283b755617ff810f01136d5c292458e15e.tar
UIC-barcode-615dd5283b755617ff810f01136d5c292458e15e.tar.gz
UIC-barcode-615dd5283b755617ff810f01136d5c292458e15e.tar.bz2
UIC-barcode-615dd5283b755617ff810f01136d5c292458e15e.tar.lz
UIC-barcode-615dd5283b755617ff810f01136d5c292458e15e.tar.xz
UIC-barcode-615dd5283b755617ff810f01136d5c292458e15e.tar.zst
UIC-barcode-615dd5283b755617ff810f01136d5c292458e15e.zip
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java14
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 {