public static InputStream stream()

in src/main/java/org/apache/sling/distribution/journal/bookkeeper/PackageHandler.java [87:98]


    public static InputStream stream(ResourceResolver resolver, PackageMessage pkgMsg, BinaryStore binaryStore) throws DistributionException {
        if (pkgMsg.getPkgBinary() != null) {
            return new ByteArrayInputStream(pkgMsg.getPkgBinary());
        } else {
            String pkgBinRef = pkgMsg.getPkgBinaryRef();
            try {
                return binaryStore.get(pkgBinRef);
            } catch (IOException io) {
                throw new DistributionException(io.getMessage(), io);
            }
        }
    }