diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-12-16 16:13:13 +0100 |
---|---|---|
committer | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-12-16 16:13:13 +0100 |
commit | bdb54c653eda54b003e50460928cfd8bbc80bc44 (patch) | |
tree | 1ccaa3af3fb8fcf2319fac438585eb0219c52905 /src/main/java/org/uic/barcode/dynamicContent | |
parent | api layer for dynamic content (diff) | |
download | UIC-barcode-bdb54c653eda54b003e50460928cfd8bbc80bc44.tar UIC-barcode-bdb54c653eda54b003e50460928cfd8bbc80bc44.tar.gz UIC-barcode-bdb54c653eda54b003e50460928cfd8bbc80bc44.tar.bz2 UIC-barcode-bdb54c653eda54b003e50460928cfd8bbc80bc44.tar.lz UIC-barcode-bdb54c653eda54b003e50460928cfd8bbc80bc44.tar.xz UIC-barcode-bdb54c653eda54b003e50460928cfd8bbc80bc44.tar.zst UIC-barcode-bdb54c653eda54b003e50460928cfd8bbc80bc44.zip |
Diffstat (limited to 'src/main/java/org/uic/barcode/dynamicContent')
-rw-r--r-- | src/main/java/org/uic/barcode/dynamicContent/api/DynamicContentCoder.java | 4 | ||||
-rw-r--r-- | src/main/java/org/uic/barcode/dynamicContent/fdc1/TimeStamp.java | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/org/uic/barcode/dynamicContent/api/DynamicContentCoder.java b/src/main/java/org/uic/barcode/dynamicContent/api/DynamicContentCoder.java index d8bf3b4..34406e0 100644 --- a/src/main/java/org/uic/barcode/dynamicContent/api/DynamicContentCoder.java +++ b/src/main/java/org/uic/barcode/dynamicContent/api/DynamicContentCoder.java @@ -26,9 +26,11 @@ import org.uic.barcode.ticket.api.utils.UicEncoderUtils; public class DynamicContentCoder {
+ public static String dynamicContentDataFDC1 = "FDC1";
+
public static byte[] encode(IUicDynamicContent content, String format) throws EncodingFormatException {
- if (format != null && !format.equals("FDC1")) {
+ if (format != null && !format.equals(dynamicContentDataFDC1)) {
throw new EncodingFormatException("Format of dynamic content not supported!");
}
diff --git a/src/main/java/org/uic/barcode/dynamicContent/fdc1/TimeStamp.java b/src/main/java/org/uic/barcode/dynamicContent/fdc1/TimeStamp.java index ecbb226..a1b9581 100644 --- a/src/main/java/org/uic/barcode/dynamicContent/fdc1/TimeStamp.java +++ b/src/main/java/org/uic/barcode/dynamicContent/fdc1/TimeStamp.java @@ -91,8 +91,11 @@ public class TimeStamp { this.secondOfDay = time;
}
+
+
+
/**
- * Gets the time.
+ * Gets the current date and time in UTC
*
* @return the date and time of content creation in UTC
*/
@@ -136,4 +139,6 @@ public class TimeStamp { }
+
+
}
|