|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kth.dks.DKSObject
public class DKSObject
Title: DKSObject class
Description: A simple wrapper for a byte array
Copyright: Copyright (c) 2004
Company: KTH-IMIT
| Constructor Summary | |
|---|---|
DKSObject(byte[] newData)
Makes a shallow copy of the byte stream, object type will be DKSObjectTypes.DEFAULT |
|
DKSObject(DKSObjectTypes type,
byte[] newData)
Makes a shallow copy of the byte stream, object type will be type |
|
DKSObject(java.lang.String base64)
WARNING! |
|
| Method Summary | |
|---|---|
byte[] |
getData()
Returns the internal byte array that this wrapper class stores |
DKSObjectTypes |
getType()
Each DKSObject has a DKSObjectType value associated with it to allow multiplexing without looking at the payload |
java.lang.String |
toString()
WARNING! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DKSObject(byte[] newData)
newData - byte[] arbitrary byte array
public DKSObject(DKSObjectTypes type,
byte[] newData)
type - DKSObjectTypes type of the objectnewData - byte[] arbitrary byte arraypublic DKSObject(java.lang.String base64)
base64 - String representation of the byte array in BASE64 encoding| Method Detail |
|---|
public DKSObjectTypes getType()
public byte[] getData()
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 | |||||||||