public final class StringResourceStream extends AbstractStringResourceStream
IResourceStream,
IModifiable,
Serialized FormDEFAULT_CONTENT_TYPE| Constructor and Description |
|---|
StringResourceStream(CharSequence string)
Construct.
|
StringResourceStream(CharSequence string,
String contentType)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
protected String |
getString() |
String |
toString() |
close, getCharset, getContentType, getInputStream, lastModifiedTime, length, setCharset, setLastModifiedgetLocale, getStyle, getVariation, setLocale, setStyle, setVariationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocale, getStyle, getVariation, setLocale, setStyle, setVariationpublic StringResourceStream(CharSequence string)
string - The resource stringpublic StringResourceStream(CharSequence string, String contentType)
string - The resource stringcontentType - The mime type of this resource, such as "image/jpeg" or "text/html"public String toString()
toString in class ObjectObject.toString()protected String getString()
getString in class AbstractStringResourceStreamAbstractStringResourceStream.getString()public String asString()
asString in interface IStringResourceStreamasString in class AbstractStringResourceStreamCopyright © 2006–2014 Apache Software Foundation. All rights reserved.