public Stream getStream()

in slingshot/src/main/java/org/apache/sling/sample/slingshot/model/StreamEntry.java [59:72]


    public Stream getStream() {
        if ( this.stream == null ) {
            if ( resource == null ) {
                stream = new Stream(null);
            } else {
                Resource rsrc = this.resource.getParent();
                while (rsrc != null && !rsrc.isResourceType(Stream.RESOURCETYPE) ) {
                    rsrc = rsrc.getParent();
                }
                stream = new Stream(rsrc);
            }
        }
        return stream;
    }