站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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

Method Summary
 byte[] marshall(ProducerState state)
          Marshall the producer state as a byte array.
 ProducerState unmarshall(byte[] marshalledState)
          Unmarshall the producer state from a byte array.
 

Method Detail

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