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, IClusterable, IResourceStream, IStringResourceStream, IModifiable
public class StringBufferResourceStream
- extends AbstractStringResourceStream
A string resource that can be appended to.
- Author:
- Jonathan Locke
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringBufferResourceStream
public StringBufferResourceStream()
- Constructor.
StringBufferResourceStream
public StringBufferResourceStream(String contentType)
- Constructor.
- Parameters:
contentType
- The mime type of this resource, such as "image/jpeg" or "text/html"
append
public StringBufferResourceStream append(CharSequence s)
- Adds to this string buffer resource
- Parameters:
s
- The string to add
- Returns:
- this for chaining
prepend
public StringBufferResourceStream prepend(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 String getString()
- Specified by:
getString
in class AbstractStringResourceStream
- Returns:
- The string resource
- See Also:
AbstractStringResourceStream.getString()
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.