org.apache.tapestry.util.io
Interface ISqueezeAdaptor
- All Known Implementing Classes:
- CharacterAdaptor, ComponentAddressAdaptor, EnumAdaptor
- public interface ISqueezeAdaptor
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).
- Version:
- $Id: ISqueezeAdaptor.java,v 1.1 2003/03/05 22:59:32 hlship Exp $
- Author:
- Howard Lewis Ship
squeeze
public String squeeze(DataSqueezer squeezer,
Object data)
throws IOException
- Converts the data object into a String.
- Throws:
IOException
- if the object can't be converted.
unsqueeze
public Object unsqueeze(DataSqueezer squeezer,
String string)
throws IOException
- Converts a String back into an appropriate object.
- Throws:
IOException
- if the String can't be converted.
register
public void register(DataSqueezer squeezer)
- Invoked to ask an adaptor to register itself to the squeezer.