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, setLastModified
getLocale, getStyle, getVariation, setLocale, setStyle, setVariation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocale, getStyle, getVariation, setLocale, setStyle, setVariation
public 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 AbstractStringResourceStream
AbstractStringResourceStream.getString()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.