public class StringBufferResourceStream extends AbstractStringResourceStream
DEFAULT_CONTENT_TYPE| Constructor and Description |
|---|
StringBufferResourceStream()
Constructor.
|
StringBufferResourceStream(String contentType)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
StringBufferResourceStream |
append(CharSequence s)
Adds to this string buffer resource
|
StringBufferResourceStream |
clear()
Clears the string buffer resource.
|
protected String |
getString() |
StringBufferResourceStream |
prepend(CharSequence s)
Prepends to this string buffer resource
|
asString, close, getCharset, getContentType, getInputStream, lastModifiedTime, length, setCharset, setLastModifiedgetLocale, getStyle, getVariation, setLocale, setStyle, setVariationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocale, getStyle, getVariation, setLocale, setStyle, setVariationpublic StringBufferResourceStream()
public StringBufferResourceStream(String contentType)
contentType - The mime type of this resource, such as "image/jpeg" or "text/html"public StringBufferResourceStream append(CharSequence s)
s - The string to addpublic StringBufferResourceStream prepend(CharSequence s)
s - The string to prependpublic StringBufferResourceStream clear()
protected String getString()
getString in class AbstractStringResourceStreamAbstractStringResourceStream.getString()Copyright © 2006–2015 Apache Software Foundation. All rights reserved.