|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.PingOO.DLAI.lib.util.BinaryData
A pseudo-file, containing bytes array and a file name.
Used to transfert binary datas (including files) over the network, from various sources.
| Field Summary | |
private byte[] |
data
The byte datas. |
private java.lang.String |
name
The name of this object. |
| Constructor Summary | |
BinaryData(byte[] data)
Creates a new instance of this class. |
|
BinaryData(java.lang.String name,
byte[] data)
Creates a new instance of this class. |
|
| Method Summary | |
java.lang.Object |
clone()
Gets a clone of this object. |
byte[] |
getData()
Returns the byte data contained in this object. |
java.lang.String |
getName()
Return the name of this object. |
void |
setData(byte[] data)
Sets the data contained in this object. |
void |
setName(java.lang.String name)
Sets the name of this object. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.lang.String name
private byte[] data
| Constructor Detail |
public BinaryData(byte[] data)
throws java.lang.NullPointerException
data - The byte data to be contained by this object.null.
public BinaryData(java.lang.String name,
byte[] data)
throws java.lang.NullPointerException
name - The name of this object, can be null.data - The byte data to be contained by this object.null.| Method Detail |
public final byte[] getData()
public final void setData(byte[] data)
throws java.lang.NullPointerException
data - The new byte array.null.public final java.lang.String getName()
null if this object has no name.public final void setName(java.lang.String name)
name - The new name, can be null.public java.lang.Object clone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||