Constructor and Description |
---|
StringAsset(String content)
Creates a new
Asset instance backed by the specified String |
Modifier and Type | Method and Description |
---|---|
String |
getSource()
Returns the underlying content.
|
InputStream |
openStream()
Get a input stream for the resource content.
|
String |
toString() |
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
openStream
in interface Asset
InputStream
for each callAsset.openStream()
public String getSource()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2016 JBoss by Red Hat. All rights reserved.