|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectP2PWNC.B64Data
This class represents a byte array together with its length. It is being used internally in Base-64 operations, mainly as a return value.
Field Summary | |
protected byte[] |
data
The byte array holding the actual data. |
protected int |
datalen
Length of the data byte array. |
Constructor Summary | |
B64Data(byte[] data,
int datalen)
Constructs a new B64Data object. |
Method Summary | |
byte[] |
getData()
Returns the "data" field. |
int |
getDatalen()
Returns the "datalen" field. |
void |
setData(byte[] data)
Sets the object's "data" field to "data" |
void |
setDatalen(int datalen)
Sets the object's "datalen" field to "datalen" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected byte[] data
protected int datalen
Constructor Detail |
public B64Data(byte[] data, int datalen)
data
- byte[]
The "data" contents.datalen
- int
The lenght of the data.Method Detail |
public byte[] getData()
public int getDatalen()
public void setData(byte[] data)
data
- byte[]public void setDatalen(int datalen)
datalen
- int
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |