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 aNode
inside of anArchive
under a contextArchivePath
. May be added directly to allArchive
types.- Author:
- Aslak Knutsen, ALR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.- Returns:
- A new open
InputStream
for each call
-
-