|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.resource.ResourceUtil
public class ResourceUtil
Utilities for resources.
| Method Summary | |
|---|---|
static java.lang.String |
readString(IResourceStream resourceStream)
read string with platform default encoding from resource stream |
static java.lang.String |
readString(IResourceStream resourceStream,
java.nio.charset.Charset charset)
read string with specified encoding from resource stream |
static void |
renderTo(IHeaderResponse resp,
ResourceReference ref,
boolean css,
java.lang.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,
java.lang.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 java.lang.String readString(IResourceStream resourceStream)
resourceStream -
readString(org.apache.wicket.util.resource.IResourceStream, java.nio.charset.Charset)
public static java.lang.String readString(IResourceStream resourceStream,
java.nio.charset.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 | |||||||||