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, setLastModifiedMethods inherited from class org.apache.wicket.util.resource.AbstractResourceStream
getLocale, getStyle, getVariation, setLocale, setStyle, setVariationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getStringin classAbstractStringResourceStream- Returns:
- The string resource
- See Also:
-
asString
- Specified by:
asStringin interfaceIStringResourceStream- Overrides:
asStringin classAbstractStringResourceStream- Returns:
- This resource as a String.
-