Package org.jboss.shrinkwrap.api.asset
Interface Asset
- All Known Subinterfaces:
NamedAsset
- All Known Implementing Classes:
ArchiveAsset
,ByteArrayAsset
,ClassAsset
,ClassLoaderAsset
,EmptyAsset
,FileAsset
,MemoryAsset
,MemoryNamedAsset
,ServiceProviderAsset
,StringAsset
,UrlAsset
,ZipFileEntryAsset
public interface Asset
Represents byte-based content. Typically stored within a
Node
inside of an Archive
under a context
ArchivePath
. May be added directly to all Archive
types.-
Method Summary
Modifier and TypeMethodDescriptionGet a input stream for the resource content.
-
Method Details
-
openStream
InputStream openStream()Get a input stream for the resource content. The caller is responsible for closing the stream.- Returns:
- A new open
InputStream
for each call
-