KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > remoting > loading > ClassBytes


1 /***************************************
2  * *
3  * JBoss: The OpenSource J2EE WebOS *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9 package org.jboss.remoting.loading;
10
11 /**
12  * ClassBytes is a serialized object that represents a class name and the class bytes as a byte array.
13  *
14  * @author <a HREF="mailto:jhaynie@vocalocity.net">Jeff Haynie</a>
15  * @version $Revision: 1.2 $
16  */

17 public class ClassBytes implements java.io.Serializable JavaDoc
18 {
19    static final long serialVersionUID = 9163990179051656161L;
20    protected String JavaDoc className;
21    protected byte classBytes[];
22
23    public ClassBytes(String JavaDoc className, byte data[])
24    {
25       this.className = className;
26       this.classBytes = data;
27    }
28
29    public String JavaDoc toString()
30    {
31       return "ClassBytes [class=" + className + ",value=" + classBytes + "]";
32    }
33
34    public String JavaDoc getClassName()
35    {
36       return className;
37    }
38
39    public byte[] getClassBytes()
40    {
41       return classBytes;
42    }
43 }
44
Popular Tags