org.wings.resource
Class StringResource
java.lang.Object
org.wings.Resource
org.wings.resource.StringResource
- All Implemented Interfaces:
- Serializable, Renderable, URLResource
public class StringResource
- extends Resource
For externalizing a string as a resource.
- Author:
- Holger Engels
- See Also:
- Serialized Form
|
Field Summary |
protected int |
externalizerFlags
Flags that influence the behaviour of the externalize manager |
externalizerFlags
protected int externalizerFlags
- Flags that influence the behaviour of the externalize manager
StringResource
public StringResource(String string)
- Default c'tor externalizing this resource as
text/plain MIME document.
- Parameters:
string -
StringResource
public StringResource(String string,
String extension,
String mimeType)
StringResource
public StringResource(String string,
String extension,
String mimeType,
int externalizerFlags)
getLength
public int getLength()
- Overrides:
getLength in class Resource
getId
public String getId()
- Get the id that identifies this resource as an externalized object.
If the object has not been externalized yet, it will be externalized.
- Overrides:
getId in class Resource
- Returns:
- the externalization id
getURL
public SimpleURL getURL()
- Description copied from interface:
URLResource
- returns the URL, this resource can be fetched from. This URL may
be relative, usually if generated from the externalizer.
- Specified by:
getURL in interface URLResource- Specified by:
getURL in class Resource
write
public final void write(Device out)
throws IOException
- Description copied from interface:
Renderable
- Write this Renderable component to some output device.
- Throws:
IOException
getExternalizerFlags
public int getExternalizerFlags()
wingS Swings ;-)