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, setLastModified
getLocale, getStyle, getVariation, setLocale, setStyle, setVariation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocale, getStyle, getVariation, setLocale, setStyle, setVariation
public 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 Object
Object.toString()
protected String getString()
getString
in class AbstractStringResourceStream
AbstractStringResourceStream.getString()
public String asString()
asString
in interface IStringResourceStream
asString
in class AbstractStringResourceStream
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.