|
||||||||||
| 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 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,
ResourceReferenceAndStringData data)
Helper that calls the proper IHeaderResponse.render*Reference method based on the input. |
static void |
renderTo(IHeaderResponse resp,
ResourceReference ref,
boolean css,
String string)
Deprecated. Will be removed in the next major release |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@Deprecated
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 void renderTo(IHeaderResponse resp,
ResourceReferenceAndStringData data)
resp - the response to call render*Reference methods ondata - public static String readString(IResourceStream resourceStream)
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 | |||||||||