|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.api.asset.ArchiveAsset
public class ArchiveAsset
An Asset
representing an Archive
; a
specified StreamExporter
type will be used to
fulfill the Asset.openStream()
contract.
Constructor Summary | |
---|---|
ArchiveAsset(Archive<?> archive,
Class<? extends StreamExporter> exporter)
Creates a new instance wrapping the specified Archive , which
will use the specified StreamExporter to represent the archive as
an InputStream in Asset.openStream() . |
Method Summary | |
---|---|
Archive<?> |
getArchive()
Returns the archive this asset represents |
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 |
---|
public ArchiveAsset(Archive<?> archive, Class<? extends StreamExporter> exporter)
Archive
, which
will use the specified StreamExporter
to represent the archive as
an InputStream
in Asset.openStream()
.
archive
- exporter
-
IllegalArgumentException
- If either argument is not specifiedMethod Detail |
---|
public InputStream openStream()
Asset
is to be viewed as a logical path (placeholder/directory)
only with no backing content.
openStream
in interface Asset
InputStream
for each call, or null if this
type simply represents a logical path within an Archive
Asset.openStream()
public Archive<?> getArchive()
|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |