当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
StateConverter - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.portlet.state
Interface StateConverter
- All Known Implementing Classes:
- StateConverterService, StateConverterV0
- public interface StateConverter
- Version:
- $Revision: 1.1 $
- Author:
- Julien Viet
marshall
public byte[] marshall(ProducerState 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
public ProducerState 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