org.jboss.portal.portlet.state
Interface StateConverter
- All Known Implementing Classes:
- StateConverterV0
public interface StateConverter
- Version:
- $Revision: 5873 $
- Author:
- Julien Viet
marshall
byte[] marshall(PortletState state)
throws StateConversionException,
java.lang.IllegalArgumentException
- Marshall the producer state as a byte array.
- Parameters:
state
- the producer state
- Returns:
- the marshalled state
- Throws:
StateConversionException
- if marshalling cannot be performed
java.lang.IllegalArgumentException
- if the state is null
unmarshall
PortletState unmarshall(byte[] marshalledState)
throws StateConversionException,
java.lang.IllegalArgumentException
- Unmarshall the producer state from a byte array.
- Parameters:
marshalledState
- the marshalled state
- Returns:
- the producer state
- Throws:
StateConversionException
- if unmarshalling cannot be performed
java.lang.IllegalArgumentException
- if the argument is null