|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cisco.provisioning.cpe.extensions.services.Blob
public class Blob
This object provides a wrapper for byte array, so it could be serialized and stored as an attribute in any logical layer database object.
| Constructor Summary | |
|---|---|
Blob()
Default constructor required for externalizable classes. |
|
Blob(byte[] blob)
Creates an instance of this class that wraps a byte array. |
|
| Method Summary | |
|---|---|
void |
decode(ByteArrayInputStream in,
com.cisco.csrc.encode.DataDecoder decoder)
Decodes object out of binary data using a specified decoder. |
void |
encode(ByteArrayOutputStream out,
com.cisco.csrc.encode.DataEncoder encoder)
Encodes object in a binary format. |
byte[] |
getBinaryData()
Returns the binary data for this blob. |
long |
getLength()
Returns the length of the binary data for this blob. |
void |
readExternal(ObjectInput in)
Externalizable interface. |
void |
writeExternal(ObjectOutput out)
Externalizable interface. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Blob(byte[] blob)
public Blob()
| Method Detail |
|---|
public byte[] getBinaryData()
public long getLength()
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface Externalizablein - the stream to read data from in order to restore the object
IOException - if I/O errors occur
ClassNotFoundException - If the class for an object being
restored cannot be found.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface Externalizableout - the stream to write the object to
IOException - Includes any I/O exceptions that may occur
public void encode(ByteArrayOutputStream out,
com.cisco.csrc.encode.DataEncoder encoder)
encode in interface com.cisco.csrc.encode.Encodableout - the output stream to write toencoder - the encoder to use for primitive types
public void decode(ByteArrayInputStream in,
com.cisco.csrc.encode.DataDecoder decoder)
decode in interface com.cisco.csrc.encode.Encodablein - input stream containing binary datadecoder - the decoder to use
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||