|
ShrinkWrap API 1.1.0-alpha-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.api.asset.StringAsset
public class StringAsset
Implementation of an Asset backed by a String
| Constructor Summary | |
|---|---|
StringAsset(String content)
Creates a new Asset instance backed by the specified String |
|
| Method Summary | |
|---|---|
String |
getSource()
Returns the underlying content. |
InputStream |
openStream()
Get a input stream for the resource content. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringAsset(String content)
Asset instance backed by the specified String
content - The content represented as a String
IllegalArgumentException - If the contents were not specified| Method Detail |
|---|
public InputStream openStream()
AssetAsset is to be viewed as a logical path (placeholder/directory) only with no
backing content.
openStream in interface AssetInputStream for each call, or null if this type simply represents a logical path
within an ArchiveAsset.openStream()public String getSource()
public String toString()
toString in class ObjectObject.toString()
|
ShrinkWrap API 1.1.0-alpha-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||