|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface which defines a class used to convert data for a specific Java type into a String format (squeeze it), or convert from a String back into a Java type (unsqueeze).
Method Summary | |
void |
register(DataSqueezer squeezer)
Invoked to ask an adaptor to register itself to the squeezer. |
String |
squeeze(DataSqueezer squeezer,
Object data)
Converts the data object into a String. |
Object |
unsqueeze(DataSqueezer squeezer,
String string)
Converts a String back into an appropriate object. |
Method Detail |
public String squeeze(DataSqueezer squeezer, Object data) throws IOException
IOException
- if the object can't be converted.public Object unsqueeze(DataSqueezer squeezer, String string) throws IOException
IOException
- if the String can't be converted.public void register(DataSqueezer squeezer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |