|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.slamd.protocol.ClassData
public class ClassData
This class defines a data structure for holding information about a class transferred from the server to a client.
| Constructor Summary | |
|---|---|
ClassData(java.lang.String className,
byte[] classBytes)
Creates a new class data object with the provided information. |
|
| Method Summary | |
|---|---|
static ClassData |
decode(ASN1Element encodedData)
Decodes the provided ASN.1 element as a set of class data information. |
ASN1Element |
encode()
Encodes this class data structure to an ASN.1 element. |
byte[] |
getClassBytes()
Retrieves the bytes that comprise the class file. |
java.lang.String |
getClassName()
Retrieves the fully-qualified name of the class. |
void |
setClassBytes(byte[] classBytes)
Specifies the bytes that comprise the class file. |
void |
setClassName(java.lang.String className)
Specifies the fully-qualified name of the class. |
java.lang.String |
toString()
Retrieves a string representation of this class data structure. |
void |
writeClassFile(java.lang.String directory)
Writes the contents of the class to an appropriate file below the given directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClassData(java.lang.String className,
byte[] classBytes)
className - The fully-qualified name of the class.classBytes - The bytes that comprise the class file.| Method Detail |
|---|
public java.lang.String getClassName()
public void setClassName(java.lang.String className)
className - The fully-qualified name of the class.public byte[] getClassBytes()
public void setClassBytes(byte[] classBytes)
classBytes - The bytes that comprise the class file.
public void writeClassFile(java.lang.String directory)
throws java.io.IOException,
java.lang.SecurityException
directory - The path to the directory below which the class file
should be written.
java.io.IOException - If an I/O problem occurs while attempting to write
the class file.
java.lang.SecurityException - If the security manager will not allow the file
to be written.public ASN1Element encode()
public static ClassData decode(ASN1Element encodedData)
throws SLAMDException
encodedData - The ASN.1 element containing the data to be decoded.
SLAMDException - If a problem occurs while attempting to decode the
provided element.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||