Constructor and Description |
---|
ByteArrayAsset(byte[] content)
Creates a new
Asset instance backed by the specified byte array |
ByteArrayAsset(InputStream stream)
Creates a new
Asset instance backed by the bytes contained in the the specified InputStream |
public ByteArrayAsset(byte[] content) throws IllegalArgumentException
Asset
instance backed by the specified byte arraycontent
- IllegalArgumentException
- If the contents were not specifiedpublic ByteArrayAsset(InputStream stream)
Asset
instance backed by the bytes contained in the the specified InputStream
stream
- IllegalArgumentException
- If the stream is not specifiedpublic InputStream openStream()
Asset
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 String toString()
toString
in class Object
Object.toString()
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.