|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.westofj.wui.WUtil
Non-instantiable class containing static utility functions.
Method Summary | |
static void |
copyStream(InputStream in,
OutputStream out)
|
static void |
copyStream(InputStream in,
PrintWriter out)
|
static void |
filter(PrintWriter out,
String text)
Filters a string for display between HTML tags. |
static String |
filter(String text)
Filters a string for display between HTML tags. |
static String |
getObjectText(WRunner runner,
Object object)
Returns the displayable text for an object. |
static String |
join(String[] a,
int start,
String joinBy)
|
static void |
jsFilter(PrintWriter out,
String text)
Filters a string for display within a javascript expression. |
static String |
jsFilter(String text)
Filters a string for display within a javascript expression. |
static void |
paramFilter(PrintWriter out,
String text)
Filters a string for display as a HTML attribute value. |
static String |
paramFilter(String text)
Filters a string for display as a HTML attribute value. |
static void |
setDefaultExpiration(HttpServletResponse response)
|
static void |
setExpiration(HttpServletResponse response,
long theDate)
|
static String |
toColorString(Color color)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void filter(PrintWriter out, String text)
out
- the writer to output the filtered string to.text
- the string to filter.public static String filter(String text)
text
- the string to filter.
public static void jsFilter(PrintWriter out, String text)
out
- the writer to output the filtered string to.text
- the string to filter.public static String jsFilter(String text)
text
- the string to filter.
public static void paramFilter(PrintWriter out, String text)
out
- the writer to output the filtered string to.text
- the string to filter.public static String paramFilter(String text)
text
- the string to filter.
public static String getObjectText(WRunner runner, Object object)
WDisplayable
,
the object is displayed by invoking WDisplayable.getText(org.westofj.wui.WRunner)
. Otherwise
Object.toString()
is invoked.
runner
- the current runner context.object
- the object to display.
public static String toColorString(Color color)
public static void copyStream(InputStream in, OutputStream out) throws IOException
IOException
public static void copyStream(InputStream in, PrintWriter out) throws IOException
IOException
public static String join(String[] a, int start, String joinBy)
public static void setDefaultExpiration(HttpServletResponse response)
public static void setExpiration(HttpServletResponse response, long theDate)
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |