|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.util.io.StringAdaptor
public class StringAdaptor
Squeezes a String (which is pretty simple, most of the time).
| Constructor Summary | |
|---|---|
StringAdaptor()
|
|
| Method Summary | |
|---|---|
Class |
getDataClass()
Returns the class (or interface) which can be encoded by this adaptor. |
String |
getPrefix()
Returns one or more characters, each of which will be a prefix for this adaptor. |
String |
squeeze(DataSqueezer squeezer,
Object data)
Converts the data object into a String. |
Object |
unsqueeze(DataSqueezer squeezer,
String string)
Strips the prefix from the string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringAdaptor()
| Method Detail |
|---|
public String getPrefix()
SqueezeAdaptor
getPrefix in interface SqueezeAdaptorpublic Class getDataClass()
SqueezeAdaptor
getDataClass in interface SqueezeAdaptor
public String squeeze(DataSqueezer squeezer,
Object data)
SqueezeAdaptor
squeeze in interface SqueezeAdaptorsqueezer - The squeezer that should be used to ultimately squeeze the data.data - The data to squeeze.
public Object unsqueeze(DataSqueezer squeezer,
String string)
DataSqueezerImpl if the string leads with its normal prefix (an
'S').
unsqueeze in interface SqueezeAdaptorsqueezer - The squeezer to use to unsqueeze the data.string - The string data - as was returned from SqueezeAdaptor.squeeze(org.apache.tapestry.services.DataSqueezer, Object).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||