|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.peaseplate.internal.transformer.EncodeTransformers
public class EncodeTransformers
| Constructor Summary | |
|---|---|
EncodeTransformers()
|
|
| Method Summary | |
|---|---|
java.lang.String |
html(RenderContext context,
java.lang.Object value)
Encodes the value using HTML entities. |
java.lang.String |
html(RenderContext context,
java.lang.Object value,
boolean encodeCRLF)
Encodes the value using HTML entities. |
java.lang.String |
html(RenderContext context,
java.lang.Object value,
boolean encodeCRLF,
boolean encodeSpace,
int encodeTabBy)
Encodes the value using HTML entities |
java.lang.String |
javaScript(RenderContext context,
java.lang.Object value)
Encodes the value to be used in Javascript strings. |
java.lang.String |
json(RenderContext context,
java.lang.Object value)
Encodes the value to be used in JSON strings. |
java.lang.String |
xml(RenderContext context,
java.lang.Object value)
Encodes the value using XML entities |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EncodeTransformers()
| Method Detail |
|---|
public java.lang.String javaScript(RenderContext context,
java.lang.Object value)
context - the contextvalue - the value, may be null
public java.lang.String json(RenderContext context,
java.lang.Object value)
context - the contextvalue - the value, may be null
public java.lang.String xml(RenderContext context,
java.lang.Object value)
context - the contextvalue - the value, may be null
public java.lang.String html(RenderContext context,
java.lang.Object value)
context - the contextvalue - the value, may be null
public java.lang.String html(RenderContext context,
java.lang.Object value,
boolean encodeCRLF)
context - the contextvalue - the value, may be nullencodeCRLF - if set to true, this method encodes CR or LF or CRLF to <br />
public java.lang.String html(RenderContext context,
java.lang.Object value,
boolean encodeCRLF,
boolean encodeSpace,
int encodeTabBy)
context - the contextvalue - the value, may be nullencodeCRLF - if set to true, this method encodes \r or \n or \r\n to <br />encodeSpace - if set to true, this method encodes spaces (0x20) to encodeTabBy - if set to >= 0, this method encodes tabs to the specified amount of
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||