Module org.apache.wicket.util
Package org.apache.wicket.util.resource
Class StringBufferResourceStream
java.lang.Object
org.apache.wicket.util.resource.AbstractResourceStream
org.apache.wicket.util.resource.AbstractStringResourceStream
org.apache.wicket.util.resource.StringBufferResourceStream
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
,IClusterable
,IResourceStream
,IStringResourceStream
,IModifiable
A string resource that can be appended to.
- Author:
- Jonathan Locke
- See Also:
-
Field Summary
Fields inherited from class org.apache.wicket.util.resource.AbstractStringResourceStream
DEFAULT_CONTENT_TYPE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.wicket.util.resource.AbstractStringResourceStream
asString, 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, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.util.resource.IResourceStream
getLocale, getStyle, getVariation, setLocale, setStyle, setVariation
-
Constructor Details
-
StringBufferResourceStream
public StringBufferResourceStream()Constructor. -
StringBufferResourceStream
Constructor.- Parameters:
contentType
- The mime type of this resource, such as "image/jpeg" or "text/html"
-
-
Method Details
-
append
Adds to this string buffer resource- Parameters:
s
- The string to add- Returns:
- this for chaining
-
prepend
Prepends to this string buffer resource- Parameters:
s
- The string to prepend- Returns:
- this for chaining
-
clear
Clears the string buffer resource.- Returns:
- this for chaining
-
getString
- Specified by:
getString
in classAbstractStringResourceStream
- Returns:
- The string resource
- See Also:
-