public static LifecycleChaincodePackage fromStream ( InputStream inputStream ) throws IOException , InvalidArgumentException { if ( null == inputStream ) { throw new InvalidArgumentException ( "The parameter inputStream may not be null." ) ; } byte [ ] packageBytes = IOUtils . toByteArray ( inputStream ) ; return fromBytes ( packageBytes ) ; }
Construct a LifecycleChaincodePackage from a stream .