Class ZipFileEntryAsset
- java.lang.Object
-
- org.jboss.shrinkwrap.impl.base.asset.ZipFileEntryAsset
-
- All Implemented Interfaces:
Asset
public class ZipFileEntryAsset extends Object implements Asset
Holds a reference to the ZipFile and the ZipEntry this Asset represents for lazy loading. Used by the ZipImporter.- Author:
- Aslak Knutsen
-
-
Constructor Summary
Constructors Constructor Description ZipFileEntryAsset(ZipFile file, ZipEntry entry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
openStream()
Get a input stream for the resource content.
-
-
-
Method Detail
-
openStream
public InputStream openStream()
Description copied from interface:Asset
Get a input stream for the resource content. The caller is responsible for closing the stream.- Specified by:
openStream
in interfaceAsset
- Returns:
- A new open
InputStream
for each call
-
-