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:
java.io.Closeable,java.io.Serializable,java.lang.AutoCloseable,IClusterable,IResourceStream,IStringResourceStream,IModifiable
public class StringBufferResourceStream extends AbstractStringResourceStream
A string resource that can be appended to.- Author:
- Jonathan Locke
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.wicket.util.resource.AbstractStringResourceStream
DEFAULT_CONTENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description StringBufferResourceStream()Constructor.StringBufferResourceStream(java.lang.String contentType)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBufferResourceStreamappend(java.lang.CharSequence s)Adds to this string buffer resourceStringBufferResourceStreamclear()Clears the string buffer resource.protected java.lang.StringgetString()StringBufferResourceStreamprepend(java.lang.CharSequence s)Prepends to this string buffer resource-
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
-
-
-
-
Method Detail
-
append
public StringBufferResourceStream append(java.lang.CharSequence s)
Adds to this string buffer resource- Parameters:
s- The string to add- Returns:
- this for chaining
-
prepend
public StringBufferResourceStream prepend(java.lang.CharSequence s)
Prepends to this string buffer resource- Parameters:
s- The string to prepend- Returns:
- this for chaining
-
clear
public StringBufferResourceStream clear()
Clears the string buffer resource.- Returns:
- this for chaining
-
getString
protected java.lang.String getString()
- Specified by:
getStringin classAbstractStringResourceStream- Returns:
- The string resource
- See Also:
AbstractStringResourceStream.getString()
-
-