|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.resource.ResourceUtil
public class ResourceUtil
Utilities for resources.
Method Summary | |
---|---|
static String |
readString(IResourceStream resourceStream)
read string with platform default encoding from resource stream |
static String |
readString(IResourceStream resourceStream,
Charset charset)
read string with specified encoding from resource stream |
static void |
renderTo(IHeaderResponse resp,
ResourceReference ref,
boolean css,
String string)
Helper that calls the proper IHeaderResponse.render*Reference method based on the input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void renderTo(IHeaderResponse resp, ResourceReference ref, boolean css, String string)
resp
- the response to call render*Reference methods onref
- the reference to rendercss
- true if this is a css referencestring
- the string argument to pass to those methods that accept it (js = id / css =
media)public static String readString(IResourceStream resourceStream)
readString(org.apache.wicket.util.resource.IResourceStream, java.nio.charset.Charset)
public static String readString(IResourceStream resourceStream, Charset charset)
resourceStream
- string sourcecharset
- charset for the string encoding (use null
for platform default)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |