public Reader(InputStream stream) { this(stream, BossBiMapper.newDeserializer()); }
/** * Extract contract from v2 or v3 sealed form, getting revoking and new items from the transaction pack supplied. If * the transaction pack fails to resolve a link, no error will be reported - not sure it's a good idea. If need, the * exception could be generated with the transaction pack. * <p> * It is recommended to call {@link #check()} after construction to see the errors. * * @param sealed binary sealed contract. * @param pack the transaction pack to resolve dependencies again. * * @throws IOException on the various format errors */ public UnsContract(byte[] sealed, @NonNull TransactionPack pack) throws IOException { super(sealed, pack); deserializeForUns(BossBiMapper.newDeserializer()); }
BiDeserializer bm = BossBiMapper.newDeserializer(); deserialize(payload.getBinderOrThrow("contract"), bm);
BiDeserializer bm = BossBiMapper.newDeserializer(); deserialize(payload.getBinderOrThrow("contract"), bm);