Modifier and Type | Field and Description |
---|---|
private java.lang.String |
content
Underlying content.
|
private static java.util.logging.Logger |
log
Logger
|
Constructor and Description |
---|
StringAsset(java.lang.String content)
Creates a new
Asset instance backed by the specified String |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSource()
Returns the underlying content.
|
java.io.InputStream |
openStream()
Get a input stream for the resource content.
|
java.lang.String |
toString() |
private static final java.util.logging.Logger log
private final java.lang.String content
public StringAsset(java.lang.String content)
Asset
instance backed by the specified Stringcontent
- The content represented as a Stringjava.lang.IllegalArgumentException
- If the contents were not specifiedpublic java.io.InputStream openStream()
Asset
openStream
in interface Asset
InputStream
for each callAsset.openStream()
public java.lang.String getSource()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()