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 AssetRepresents byte-based content. Typically stored within aNodeinside of anArchiveunder a contextArchivePath. May be added directly to allArchivetypes.- Author:
- Aslak Knutsen, ALR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamopenStream()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
InputStreamfor each call
-
-