问题 I'm new to Java, so I would like to use the standard solution for, I think, the standard task. The length of tags and values are not known. 回答1: Tutorial in here gives a tips on how to parse BER-TLV. Using JACCAL 回答2: You can use this BER-TLV parser: source code on git or download jar. Examples: How to parse byte[] bytes = HexUtil.parseHex("50045649534157131000023100000033D44122011003400000481F"); BerTlvParser parser = new BerTlvParser(LOG); BerTlvs tlvs = parser.parse(bytes, 0, bytes