public static LifecycleChaincodeEndorsementPolicy fromStream ( InputStream inputStream ) throws IOException { return new LifecycleChaincodeEndorsementPolicy ( ByteString . copyFrom ( IOUtils . toByteArray ( inputStream ) ) ) ; }
Construct a chaincode endorsement policy from a stream .