diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-11-23 16:44:15 +0100 |
---|---|---|
committer | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-11-23 16:44:15 +0100 |
commit | b51f825080e3535b259c673af7053ad43fc1e674 (patch) | |
tree | 7bde019f9530897df4e2c97f612e633d7a6a36e1 /src/main | |
parent | dynamic content time stamp fixed and test added (diff) | |
download | UIC-barcode-b51f825080e3535b259c673af7053ad43fc1e674.tar UIC-barcode-b51f825080e3535b259c673af7053ad43fc1e674.tar.gz UIC-barcode-b51f825080e3535b259c673af7053ad43fc1e674.tar.bz2 UIC-barcode-b51f825080e3535b259c673af7053ad43fc1e674.tar.lz UIC-barcode-b51f825080e3535b259c673af7053ad43fc1e674.tar.xz UIC-barcode-b51f825080e3535b259c673af7053ad43fc1e674.tar.zst UIC-barcode-b51f825080e3535b259c673af7053ad43fc1e674.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main/java/org/uic/barcode/asn1/uper/UperEncoder.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/main/java/org/uic/barcode/asn1/uper/UperEncoder.java b/src/main/java/org/uic/barcode/asn1/uper/UperEncoder.java index a5ef5c5..5956054 100644 --- a/src/main/java/org/uic/barcode/asn1/uper/UperEncoder.java +++ b/src/main/java/org/uic/barcode/asn1/uper/UperEncoder.java @@ -691,17 +691,6 @@ public final class UperEncoder { return sb.toString(); } - public static byte[] bytesFromBinaryString(String s) { - int len = s.length(); - byte[] result = new byte[(len + Byte.SIZE - 1) / Byte.SIZE]; - char c; - for (int i = 0; i < len; i++) - if ((c = s.charAt(i)) == '1') result[i / Byte.SIZE] = (byte) (result[i / Byte.SIZE] | (0x80 >>> (i % Byte.SIZE))); - else if (c != '0') - throw new IllegalArgumentException(); - return result; - } - private static BitBuffer bitBufferFromBinaryString(String s) { ByteBitBuffer result = ByteBitBuffer.allocate(s.length()); for (int i = 0; i < s.length(); i++) { |