|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.util.resource.AbstractResourceStream org.apache.wicket.util.resource.AbstractStringResourceStream org.apache.wicket.util.resource.StringBufferResourceStream
public class StringBufferResourceStream
A string resource that can be appended to.
Constructor Summary | |
---|---|
StringBufferResourceStream()
Constructor. |
|
StringBufferResourceStream(java.lang.String contentType)
Constructor. |
Method Summary | |
---|---|
StringBufferResourceStream |
append(java.lang.CharSequence s)
Adds to this string buffer resource |
java.lang.String |
asString()
|
StringBufferResourceStream |
clear()
Clears the string buffer resource. |
protected java.lang.String |
getString()
|
long |
length()
Gets the size of this resource in bytes TODO 1.5: rename to lengthInBytes() or let it return some sort of size object |
StringBufferResourceStream |
prepend(java.lang.CharSequence s)
Prepends to this string buffer resource |
Methods inherited from class org.apache.wicket.util.resource.AbstractStringResourceStream |
---|
close, getContentType, getInputStream, lastModifiedTime, setLastModified |
Methods inherited from class org.apache.wicket.util.resource.AbstractResourceStream |
---|
getCharset, getLocale, setCharset, setLocale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringBufferResourceStream()
public StringBufferResourceStream(java.lang.String contentType)
contentType
- The mime type of this resource, such as "image/jpeg" or "text/html"Method Detail |
---|
public StringBufferResourceStream append(java.lang.CharSequence s)
s
- The string to add
public StringBufferResourceStream prepend(java.lang.CharSequence s)
s
- The string to prepend
public StringBufferResourceStream clear()
protected java.lang.String getString()
getString
in class AbstractStringResourceStream
AbstractStringResourceStream.getString()
public java.lang.String asString()
asString
in interface IStringResourceStream
asString
in class AbstractResourceStream
AbstractResourceStream.asString()
public long length()
IResourceStream
length
in interface IResourceStream
length
in class AbstractResourceStream
IResourceStream.length()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |