Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在解析一条快速的 MT564 消息,并且我能够使用 getSequence() 获取所有序列(A、B、C、D、F),但是每当我尝试获取序列 E 时,尽管我是解析包含序列 E。
SwiftMessage mssg = SwiftMessage.parse(mssgString); AbstractMT mt = mssg.toMT(); SwiftTagListBlock block = mt.getSequence("E");
看了库的AbstractMT类的源代码就知道了。由于序列 E 是一个可选的重复序列,我们将使用 getSequenceList() 方法获取列表 SwiftTagListBlock 元素。