org.jboss.shrinkwrap.api
Interface Asset


public interface Asset

Represents content stored under some context (a ArchivePath) within an Archive

Author:
Aslak Knutsen, ALR

Method Summary
 InputStream openStream()
          Get a input stream for the resource content.
 

Method Detail

openStream

InputStream openStream()
Get a input stream for the resource content. The caller is responsible for closing the stream. If this returns null, this denotes that the Asset is to be viewed as a logical path (placeholder/directory) only with no backing content.

Returns:
A new open InputStream for each call, or null if this type simply represents a logical path within an Archive


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.