001 /* 002 * Copyright (c) 2003, The Regents of the University of California, through 003 * Lawrence Berkeley National Laboratory (subject to receipt of any required 004 * approvals from the U.S. Dept. of Energy). All rights reserved. 005 */ 006 007 package gov.lbl.dsd.sea.demo; 008 009 import gov.lbl.dsd.sea.Stage; 010 import gov.lbl.dsd.sea.event.GenericCallbackEvent; 011 012 /** 013 * An event that contains an array of bytes. 014 * 015 * @author whoschek@lbl.gov, modified kberket@lbl.gov 016 * @author $Author: hoschek3 $ 017 * @version $Revision: 1.1 $, $Date: 2004/05/29 19:24:57 $ 018 */ 019 020 public class ByteArrayEvent extends GenericCallbackEvent { 021 022 public ByteArrayEvent(Stage source, byte[] bytes) { 023 super(source, bytes); 024 } 025 026 public ByteArrayEvent(Stage source, byte[] bytes, Object info) { 027 super(source, bytes, info); 028 } 029 030 public byte[] getBytes() { 031 return (byte[]) this.getMessage(); 032 } 033 034 }