diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2022-01-24 16:51:04 +0100 |
---|---|---|
committer | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2022-01-24 16:51:04 +0100 |
commit | 09f0f9449a10b713207126348105fafec4781bed (patch) | |
tree | 3e68c5dd9253443baf73de9895e8a57b4dcc52cc /src/main/java/org/uic/barcode/dynamicFrame/v2 | |
parent | new dynamic header version 2.0.0 (diff) | |
download | UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.tar UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.tar.gz UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.tar.bz2 UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.tar.lz UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.tar.xz UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.tar.zst UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.zip |
Diffstat (limited to 'src/main/java/org/uic/barcode/dynamicFrame/v2')
-rw-r--r-- | src/main/java/org/uic/barcode/dynamicFrame/v2/DynamicFrameCoderV2.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/uic/barcode/dynamicFrame/v2/DynamicFrameCoderV2.java b/src/main/java/org/uic/barcode/dynamicFrame/v2/DynamicFrameCoderV2.java index 8987f59..bdaa31a 100644 --- a/src/main/java/org/uic/barcode/dynamicFrame/v2/DynamicFrameCoderV2.java +++ b/src/main/java/org/uic/barcode/dynamicFrame/v2/DynamicFrameCoderV2.java @@ -197,6 +197,17 @@ public class DynamicFrameCoderV2 { return asnLevel1;
}
+
+ public static byte[] getEncoded(String path, byte[] data) {
+
+ if (path.endsWith("Level1Data")){
+ return UperEncoder.extract(data, "Level1DataType" ,DynamicFrame.class );
+ } else if (path.endsWith("Level2Data")){
+ return UperEncoder.extract(data, "Level2DataType" ,DynamicFrame.class );
+ }
+
+ return null;
+ }
|