Constructor and Description |
---|
StringAsset(String content)
Creates a new
Asset instance backed by the specified String |
public StringAsset(String content)
Asset
instance backed by the specified Stringcontent
- The content represented as a StringIllegalArgumentException
- If the contents were 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 © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.