wicket.util.resource
Class StringResourceStream
java.lang.Object
wicket.util.resource.AbstractResourceStream
wicket.util.resource.AbstractStringResourceStream
wicket.util.resource.StringResourceStream
- All Implemented Interfaces:
- java.io.Serializable, IResourceStream, IStringResourceStream, IModifiable
public final class StringResourceStream
- extends AbstractStringResourceStream
A StringResourceStream is an IResource implementation for strings.
- Author:
- Jonathan Locke
- See Also:
IResourceStream
,
IModifiable
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringResourceStream
public StringResourceStream(java.lang.CharSequence string)
- Construct.
- Parameters:
string
- The resource string
StringResourceStream
public StringResourceStream(java.lang.CharSequence string,
java.lang.String contentType)
- Construct.
- Parameters:
string
- The resource stringcontentType
- The mime type of this resource, such as "image/jpeg" or
"text/html"
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
getString
protected java.lang.String getString()
- Specified by:
getString
in class AbstractStringResourceStream
- Returns:
- The string resource
- See Also:
AbstractStringResourceStream.getString()
asString
public java.lang.String asString()
- Specified by:
asString
in interface IStringResourceStream
- Overrides:
asString
in class AbstractResourceStream
- Returns:
- This resource as a String.
- See Also:
AbstractResourceStream.asString()
length
public long length()
- Description copied from interface:
IResourceStream
- Gets the size of this resource
- Returns:
- The size of this resource in the number of bytes
- See Also:
IResourceStream.length()
Copyright © 2004-2007 Wicket developers. All Rights Reserved.