java.lang.Object
org.apache.wicket.util.resource.AbstractResourceStream
org.apache.wicket.util.resource.AbstractStringResourceStream
org.apache.wicket.util.resource.StringResourceStream
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
,IClusterable
,IResourceStream
,IStringResourceStream
,IModifiable
A StringResourceStream is an IResource implementation for strings.
- Author:
- Jonathan Locke
- See Also:
-
Field Summary
Fields inherited from class org.apache.wicket.util.resource.AbstractStringResourceStream
DEFAULT_CONTENT_TYPE
-
Constructor Summary
ConstructorsConstructorDescriptionStringResourceStream
(CharSequence string) Construct.StringResourceStream
(CharSequence string, String contentType) Construct. -
Method Summary
Methods inherited from class org.apache.wicket.util.resource.AbstractStringResourceStream
close, getCharset, getContentType, getInputStream, lastModifiedTime, length, setCharset, setLastModified
Methods inherited from class org.apache.wicket.util.resource.AbstractResourceStream
getLocale, getStyle, getVariation, setLocale, setStyle, setVariation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.wicket.util.resource.IResourceStream
getLocale, getStyle, getVariation, setLocale, setStyle, setVariation
-
Constructor Details
-
StringResourceStream
Construct.- Parameters:
string
- The resource string
-
StringResourceStream
Construct.- Parameters:
string
- The resource stringcontentType
- The mime type of this resource, such as "image/jpeg" or "text/html"
-
-
Method Details
-
toString
-
getString
- Specified by:
getString
in classAbstractStringResourceStream
- Returns:
- The string resource
- See Also:
-
asString
- Specified by:
asString
in interfaceIStringResourceStream
- Overrides:
asString
in classAbstractStringResourceStream
- Returns:
- This resource as a String.
-