Code example for ObjectInput

Methods: readBoolean, readLong

0
   * @see                    de.objectcode.canyon.bpe.util.IStateHolder#hydrate(java.io.ObjectInput) 
   */ 
  public void hydrate( HydrationContext context, ObjectInput in )
    throws IOException 
  { 
    super.hydrate( context, in );
 
    m_active = in.readBoolean();
    m_currentUntil = in.readLong();
  } 
 
 
  /** 
   * @param element  Description of the Parameter 
   * @see            de.objectcode.canyon.bpe.util.IDomSerializable#toDom(org.dom4j.Element) 
   */ 
  public void toDom( Element element ) 
  { 
    super.toDom( element ); 
 
    element.addAttribute( "active", String.valueOf( m_active ) );