ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

org.jboss.shrinkwrap.impl.base.asset
Class ZipFileEntryAsset

java.lang.Object
  extended by 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.

Version:
$Revision: $
Author:
Aslak Knutsen

Constructor Summary
ZipFileEntryAsset(ZipFile file, ZipEntry entry)
           
 
Method Summary
 InputStream openStream()
          Get a input stream for the resource content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipFileEntryAsset

public ZipFileEntryAsset(ZipFile file,
                         ZipEntry entry)
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. If this returns null, this denotes that the Asset is to be viewed as a logical path (placeholder/directory) only with no backing content.

Specified by:
openStream in interface Asset
Returns:
A new open InputStream for each call, or null if this type simply represents a logical path within an Archive

ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

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