org.apache.wicket.util.resource
Interface IStringResourceStream

All Superinterfaces:
IClusterable, IModifiable, IResourceStream, java.io.Serializable
All Known Implementing Classes:
AbstractResourceStream, AbstractStringResourceStream, CssTemplate, FileResourceStream, JavaScriptTemplate, PackagedTextTemplate, PackageResourceStream, StringBufferResourceStream, StringResourceStream, TextTemplate, TextTemplateDecorator, UrlResourceStream, WebExternalResourceStream, XSLTResourceStream, ZipResourceStream

public interface IStringResourceStream
extends IResourceStream

A resource that can be converted to a String representation, possibly using an explicit Charset.

Author:
Jonathan Locke

Method Summary
 java.lang.String asString()
           
 void setCharset(java.nio.charset.Charset charset)
          Sets the character set used for converting this resource to a String.
 
Methods inherited from interface org.apache.wicket.util.resource.IResourceStream
close, getContentType, getInputStream, getLocale, length, setLocale
 
Methods inherited from interface org.apache.wicket.util.watch.IModifiable
lastModifiedTime
 

Method Detail

setCharset

void setCharset(java.nio.charset.Charset charset)
Sets the character set used for converting this resource to a String.

Parameters:
charset - Charset for component

asString

java.lang.String asString()
Returns:
This resource as a String.


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.